identity_cache_fetchers:用于 IdentityCache 的 ActiveRecord#fetch_or_initialize 和 ActiveRecord#fetch_or_create

时间:2024-07-03 16:21:42
【文件属性】:

文件名称:identity_cache_fetchers:用于 IdentityCache 的 ActiveRecord#fetch_or_initialize 和 ActiveRecord#fetch_or_create

文件大小:38KB

文件格式:ZIP

更新时间:2024-07-03 16:21:42

Ruby

身份缓存提取器 用于ActiveRecord#fetch_or_initialize 和 ActiveRecord#fetch_or_create # based on https://github.com/Shopify/identity_cache#secondary-indexes class Product < ActiveRecord :: Base include IdentityCache include IdentityCacheFetchers cache_index :handle , unique : true cache_index :vendor , :product_type end 这个 gem 为您带来了等价物,但使用 IdentityCache 作为第一个来源: Product . fetch_or_initialize_by


【文件预览】:
identity_cache_fetchers-master
----.gitignore(140B)
----identity_cache_fetchers.gemspec(938B)
----spec()
--------dummy()
--------spec_helper.rb(4KB)
--------rails_helper.rb(2KB)
--------lib()
----README.md(1KB)
----circle.yml(95B)
----lib()
--------identity_cache_fetchers()
--------identity_cache_fetchers.rb(604B)
--------tasks()
----Gemfile(112B)
----MIT-LICENSE(1KB)
----Rakefile(414B)
----Gemfile.lock(3KB)

网友评论