Registry / utility / lite-memoize

lite-memoize

JSON →
library1.1.1rbrubygemsunverified

Provides cache and memoization helpers for Ruby classes to improve performance.

gem install lite-memoize
INSTALL
IMPORT
SIG · LITE-MEMOIZE
L
lite-memoize
utilityrubyv1.1.1
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.

LiteMemoize
require 'lite-memoize'

Memoize a method to cache its return value.

require 'lite-memoize' class MyClass extend LiteMemoize def expensive_operation sleep 2 'result' end memoize :expensive_operation end obj = MyClass.new puts obj.expensive_operation
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lite-memoize — gem install lite-memoize · libregistry