Registry / utility / lru-redux

lru-redux

JSON →
library1.1.0rbrubygemsunverified

An efficient implementation of an LRU cache in Ruby.

gem install lru_redux
INSTALL
IMPORT
SIG · LRU-REDUX
L
lru-redux
utilityrubyv1.1.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.

LruRedux
require 'lru_redux'

Create and use an LRU cache with a maximum size of 3.

require 'lru_redux' cache = LruRedux::Cache.new(3) cache[:a] = 1 puts cache[:a]
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
lru-redux — gem install lru-redux · libregistry