Skip to content

polysource/adapter-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polysource/adapter-redis

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 against predis/predis.
  • InMemoryRedisHashFake — test double, no Redis needed.
  • RedisHashDataSource — implements WritableDataSourceInterface with SCAN cursor pagination (no KEYS calls) 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],
];

Documentation

About

Polysource — Redis hash adapter: read+write Redis-backed records (feature flags, lightweight config, session metadata).

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages