Redis session storage adapter for svelte-kit-sessions, version 0.1.0. Designed specifically for SvelteKit applications, it provides a custom store implementation that integrates with either the `redis` or `ioredis` client. Unlike generic connect-redis adapters, this package is tailored for SvelteKit's session handling pattern via `svelte-kit-sessions`. Currently in early release, it supports configurable key prefixes, custom serializers, and TTL overrides. Ships with TypeScript definitions.
npm install svelte-kit-connect-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Redis-based session storage for SvelteKit using svelte-kit-sessions and svelte-kit-connect-redis with the redis client.
Ensure `await client.connect()` is called before creating `new RedisStore({ client })`.Use only one Redis client library and pass the appropriate instance to RedisStore.
If providing a custom serializer, ensure it implements both `parse` and `stringify` methods.
Pin exact version and monitor releases for breaking changes.
Ensure you call `client.connect()` only once and pass the connected client. Example: `const client = createClient(); await client.connect();`
Use either `createClient()` from 'redis' or `new Redis()` from 'ioredis' and pass the instance directly.
Check the key prefix configuration and ensure serialization consistency. Default prefix is 'sess:'.