Fully compatible with Redis & Elasticache, KeyDB has a superior architecture that provides more throughput and offers powerful new features
Multi-Master mode uses a single replicated dataset across many nodes to serve both read and write operations
Nodes can be replicated cross-region to offer submillisecond latencies to local clients
Cluster mode allows unlimited read and write scaling by splitting the dataset across shards.
This allows unlimited scaling, and also support high availability through replica nodes.
# individually expire members of a set
$ keydb-cli> SADD myset member1 member2 member3
$ keydb-cli> EXPIREMEMBER myset member2 3600
# schedule lua scripts to run with keydb.cron
$ keydb-cli> KEYDB>CRON mycrontask REPEAT 60000 ‘redis.call(‘INCR’, KEYS)