![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
connect-redis-realtime
Advanced tools
Internally-cached Redis session store for Connect, powered by PubSub
connect-redis-realtime is an extension of the connect-redis session store.
The difference is, this library is backed by an internal LRU cache to prevent excess network chatter on mildly-stable data. This cache is dynamically expired across nodes via redis built-in pubsub - perfect for realtime apps.
connect-redis is a Redis session store backed by node_redis, and is insanely fast :). Requires redis >= 2.0.0
for the SETEX command.
$ npm install connect-redis-realtime
max
An integer containing the maximum number of sessions cacheable - set to at least your maximum-expected concurrent users. Defaults to Infinity.client
An existing redis client object you normally get from redis.createClient()
host
Redis server hostnameport
Redis server portnottl
Session TTL in secondsdb
Database index to usepass
Password for Redis authenticationprefix
Key prefix defaulting to "sessions."createClient()
method.Pass connect to the function connect-redis-realtime
exports in order to extend connect.session.Store
:
var connect = require('connect')
, RedisStoreRealtime = require('connect-redis-realtime')(connect);
connect()
.use(connect.session({ store: new RedisStoreRealtime(options), secret: 'keyboard cat' }))
Express users may do the following, since express.session.Store
points to the connect.session.Store
function:
var RedisStoreRealtime = require('connect-redis-realtime')(express);
MIT
Thanks to TJ Holowaychuk for connect-redis
Full test coverage.
FAQs
Internally-cached Redis session store for Connect, powered by PubSub
The npm package connect-redis-realtime receives a total of 0 weekly downloads. As such, connect-redis-realtime popularity was classified as not popular.
We found that connect-redis-realtime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.