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.
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.
composer require polysource/adapter-redis predis/predisRegister the bundle:
return [
Polysource\Adapter\Redis\PolysourceAdapterRedisBundle::class => ['all' => true],
];