A lingering object cache!
OpenTelemetry instrumentation for `lru-memoizer` function memoization using lru-cache
Memoize functions results using an lru-cache.
Faster than fast, smaller than micro ... a nano speed and nano size memoizer.
Serializable memoizer with promises
A memoizer using redis as a shared cache, with TTL.
An efficient memoizer for functions that only receive immutable arguments. Ideal for Redux and similar environments.
Node.js solution for memoizing/caching function results on the file system
Create a stream that emits events from multiple other streams
Turn a function into an `http.Agent` instance
Simple disk memoization and in memory LRU cache for high latency IO responses
A memoizer factory for Intl format constructors.
Detect whether a terminal supports color
Create an ArrayBuffer instance from a Data URI string
The Gateway provider for the [AI SDK](https://ai-sdk.dev/docs) allows the use of a wide variety of AI models and providers.
Access deep object properties using a path
Garbage-collected memoizer for variadic functions
An arbitrary-precision Decimal type for JavaScript.
Constant-time comparison of Buffers
The **[OpenAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.
destroy a stream if possible
The **[Anthropic provider](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post).
The **[Google Generative AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/)
Returns a `stream.Readable` from a URI string
Adds helper methods to FactoryBot to memoize instances to speed up test suite.
If you are used to doing memoization with `@my_method ||= yada_yada` and `return @my_method if defined?(@my_method); @my_method = yada_yada`, but you would like to get the memoization stuff out of the `yada_yada` part, but still rest assured that the `memoize` method does nothing more than that, then this gem is for you.
ActiveRecord will extend ActiveSupport::Memoizable for instance methods
Adds helper methods to FactoryGirl to memoize instances to speed up test suite.
Memorb makes instance method memoization easy to set up and use.
Memoize methods with a simple decorator. Supports TTL expiration, LRU eviction, thread-safe per-instance caches, hit/miss stats, and proper nil/false handling.
Memoize attributes in a thread-safe way. This ruby gem adds a `#attr_memoized` class method, that provides a lazy-loading mechanism for initializing "heavy" attributes, but in a thread-safe way. Instances thus created can be shared among threads.
SafeMemoize is a production-ready, zero-dependency memoization library for Ruby. It uses Ruby's prepend mechanism to wrap methods with a thread-safe cache (Mutex + double-check locking) that correctly handles nil and false return values — fixing the silent bug in the common ||= pattern. Results are cached per unique argument combination, so parameterized methods only compute each variant once. Additional features include TTL expiration, LRU cache size limiting, conditional caching via if:/unless: predicates, lifecycle hooks for hit/eviction/expiration events, per-instance metrics (hit rate, miss rate, computation time), targeted cache invalidation, custom cache key generators, and introspection helpers. Method visibility (public, protected, private) is fully preserved.