Registry / utility / ruby-cache

ruby-cache

JSON →
library0.3.0rbrubygemsunverified

A library for caching objects using the LRU (Least Recently Used) eviction algorithm.

gem install ruby-cache
INSTALL
IMPORT
SIG · RUBY-CACHE
R
ruby-cache
utilityrubyv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cache
require 'ruby-cache'

Create an LRU cache and store/retrieve values.

require 'ruby-cache' cache = Cache.new(max_entries: 3) cache['key1'] = 'value1' cache['key2'] = 'value2' puts cache['key1']
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
ruby-cache — gem install ruby-cache · libregistry