polysource/adapter-redis

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

Maintainers

Package info

github.com/polysource/adapter-redis

Homepage

Issues

Type:symfony-bundle

pkg:composer/polysource/adapter-redis

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.1 2026-05-10 21:00 UTC

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 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