Download the PHP package polysource/adapter-redis without Composer
On this page you can find all versions of the php package polysource/adapter-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polysource/adapter-redis
More information about polysource/adapter-redis
Files in polysource/adapter-redis
Package adapter-redis
Short Description Polysource — Redis adapter: 5 type-pure data sources (string, list, hash, set, sorted set) for read+write Redis-backed records (feature flags, lightweight config, session metadata).
License MIT
Homepage https://github.com/polysource/polysource
Informations about the package adapter-redis
polysource/adapter-redis
Redis adapter for Polysource — admin feature flags, rate-limit buckets, workflow queues, leaderboards, cache entries. Covers all five Redis data types, one type-pure data source each.
Part of the Polysource monorepo. MIT-licensed.
What it ships
RedisClientInterface(21 methods) — abstraction over the Redis client used by the data sources, spanning the five supported types. Decouples from Predis/PhpRedis specifics.RedisHashClientInterfaceis the historical hashes-only name, kept as a deprecated alias that now extends the wider contract.PredisRedisClient— production implementation againstpredis/predis.PredisRedisHashClientis its hashes-scoped counterpart.-
Five type-pure data sources, each implementing
WritableDataSourceInterfaceover a key prefix and filtering client-side.search()walks the keyspace with repeatedSCAN(neverKEYS), sorts by id for stable ordering, then slices offset/limit in memory — the scan is capped at 50 iterations (~5 000 keys per namespace), so these are admin-sized collections, not unbounded ones:Data source One record is Exposed properties RedisHashDataSourceone hash key the hash fields themselves RedisListDataSourceone list key length,head,headPreview,ttlRedisSetDataSourceone set key cardinality,members,ttlRedisSortedSetDataSourceone sorted-set key cardinality,topMembers,topPreview,ttlRedisStringDataSourceone string key value,ttl - Five matching resources —
RedisHashResource,RedisListResource,RedisSetResource,RedisSortedSetResource,RedisStringResource: non-final convenience bases, one subclass per Redis namespace you want to admin.
Install
Register the bundle:
Documentation
All versions of adapter-redis with dependencies
polysource/core Version ^0.1 || ^0.2 || ^0.3 || ^0.4 || ^0.5 || ^0.6 || ^0.7 || ^0.8 || ^0.9 || ^0.10 || ^0.11 || ^1.0
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0