Sha256: 16f120ba55f9d08da9779939db5286157237db46eeb089d5fed890e6fab12c99
Contents?: true
Size: 463 Bytes
Versions: 6
Compression:
Stored size: 463 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) -> @cache = new modularity.Cache add: (entry) -> @cache.add entry[@key], entry add_all: (entries) -> @add(entry) for entry in entries remove: (entry) -> @cache.remove entry[@key] get: (key) -> @cache.get key length: => @cache.length()
Version data entries
6 entries across 6 versions & 1 rubygems