Sha256: 20bebe6af8092cf04f3115ad5dc3d64d640f31573ef8e543d74bbca0b74c2684
Contents?: true
Size: 534 Bytes
Versions: 19
Compression:
Stored size: 534 Bytes
Contents
#= require modularity/data/cache # Provides fast and convenient retrieval of hash objects # by indexing them on a given key column. class modularity.IndexedCache constructor: (@key = 'id') -> @cache = new modularity.Cache add: (entry) -> @cache.add entry[@key], entry add_all: (entries) -> @add(entry) for entry in entries remove: (entry_id) -> @cache.remove entry_id remove_many: (entry_ids) -> @cache.remove_many entry_ids get: (key) -> @cache.get key length: => @cache.length()
Version data entries
19 entries across 19 versions & 1 rubygems