vania_redis 1.0.0
vania_redis: ^1.0.0 copied to clipboard
Redis client, cache driver, Lua scripting, pub/sub, and pooling for Vania.
1.0.0 #
First stable release.
- Requires
vania2.0.0. - Redis cache driver, pub/sub, and Lua scripting behind one
Redis()singleton. RedisScript.fromFileandRedisScriptRepositoryload Lua scripts from a directory at boot, cache their SHAs, and fall back fromEVALSHAtoEVALonNOSCRIPT.RedisPubSub.attach()/own()with an explicitclose()for the dedicated Pub/Sub connection.RedisServiceProvidertakes an optionalRedisConfigand, withwarmUpset, opens the connection and loads scripts duringboot().
0.2.0 #
- Add
RedisScript.fromFileandRedisScriptRepository— load Lua scripts from a directory at boot, cache SHAs on the instance, and fall back fromEVALSHAtoEVALtransparently onNOSCRIPT. - Add
RedisPubSub.close()— release the dedicated Pub/Sub connection cleanly.RedisPubSub.attach()/RedisPubSub.own()replace the deprecatedRedisPubSub.create. - Add
Redis().pubsub<T>()andRedis().scriptson the singleton. RedisServiceProvidernow takes an optionalRedisConfig?and, whenwarmUpis set, opens the connection eagerly + loads Lua scripts from the configured directory duringboot().- New env keys:
REDIS_SCRIPTS_PATH,REDIS_WARM_UP.
0.1.0 #
- Initial version.