polysource / adapter-redis
Polysource — Redis hash adapter: read+write Redis-backed records (feature flags, lightweight config, session metadata).
Package info
github.com/polysource/adapter-redis
Type:symfony-bundle
pkg:composer/polysource/adapter-redis
v0.1.1
2026-05-10 21:00 UTC
Requires
- php: >=8.1
- polysource/core: ^0.1
- symfony/config: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^10.5 || ^11.5
- polysource/symfony-bundle: 0.1.x-dev
- predis/predis: ^2.2
Suggests
- ext-redis: Native PHP Redis extension — alternative to Predis.
- predis/predis: Recommended client for the Redis adapter (^2.2). Hosts can also pass a native ext-redis client through a custom RedisHashClientInterface implementation.
This package is auto-updated.
Last update: 2026-05-10 21:01:31 UTC
README
Redis hashes adapter for Polysource — admin feature flags, rate-limit buckets, in-memory caches, any key/value or hash collection.
Part of the Polysource monorepo. MIT-licensed.
What it ships
RedisHashClientInterface(5 methods) — abstraction over the Redis client used by the data source. Decouples from Predis/PhpRedis specifics.PredisRedisHashAdapter— production implementation againstpredis/predis.InMemoryRedisHashFake— test double, no Redis needed.RedisHashDataSource— implementsWritableDataSourceInterfacewith SCAN cursor pagination (noKEYScalls) and client-side filtering.RedisHashResource— non-final convenience base.
Install
composer require polysource/adapter-redis predis/predis
Register the bundle:
return [ Polysource\Adapter\Redis\PolysourceAdapterRedisBundle::class => ['all' => true], ];