
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
A meta library attempting to offer extended Redis-related features and optimizations to other implementations (such as Microsoft.Extensions.Caching.StackExchangeRedis
).
Heavily inspired by / re-uses:
Microsoft.Extensions.Caching.StackExchangeRedis
IDistributedCache
implementation based on Microsoft's with a bunch of tweaks, especially to atomic get and refresh operation now doing expiration math server-side with a single round-tripJsonSerializerSettings
Library was mainly created to optimize operations done by Microsoft.Extensions.Caching.StackExchangeRedis
plus connect a few other libraries together.
The main service implements IDistributedCache
and registers itself as such with the DI container (and as it's own interface - IRedisExplorer
).
Access to the underlying services is provided through appropriate methods on IRedisExplorer
- GetDatabase
, GetMultiplexer
and their async versions - should you need to do something 'unusual'.
The library uses Lua scripts for every operation it performs so if you're using a proxy the library will try to perform an optimized approach to utilizing scripts - every operation will be attempted directly with a SHA1 of the script (EVALSHA
) instead of allowing StackExchange.Redis
to decide which way to go about the script, if it fails it will be retried with a full script with NoScriptCache
flag. This approach utilizes a kind-of non-documented feature of EVAL
command (EVAL
caches the script on call - performs a silent SCRIPT LOAD
), and should result in an eventual consistency (at some point all nodes will have the script cached and no retries will be performed until the script cache is flushed).
You can opt-out of this feature by settings UseBandwidthOptimizationForProxies
to false
on RedisCacheOptions
.
To register the services use the extension method on IServiceCollection
(it's similar to the one provided by Microsoft.Extensions.Caching.StackExchangeRedis
):
services.AddRedisExplorer(redisSetupAction);
or if you only need the optimized implementation of IDistributedCache
then
services.AddRedisExplorerDistributedCache(redisSetupAction);
These will overwrite any other implementation of IDistributedCache
currently registered with the container.
If you wish to configure the JsonSerializerOptions
used for de/serializing:
services.Configure<JsonSerializerOptions>(RedisExplorer.JsonOptionsName, yourOptions);
Documentation available at https://mikym.github.io/RedisExplorer/
FAQs
Unknown package
We found that redisexplorer.stack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.