What maps to what: migrate from Memcached to KiviDB
What maps to what. Migrate to KiviDB: Move from Redis, Valkey, ElastiCache, Redis Cloud, Aiven, Aerospike, Hazelcast and more: getting the data out, loading i
| Memcached | KiviDB | Notes |
|---|---|---|
| Text, binary or meta protocol | RESP2, RESP3 | Change the client library. Any Redis client works. |
get | GET | |
get k1 k2 ... (multi-get) | MGET k1 k2 ... | MGET returns a value or nil for every key, in order. |
set k v with exptime | SET k v EX <seconds> | |
| exptime over 30 days (a Unix time) | SET k v EXAT <unix-time> | See Expiry below. |
add | SET k v NX | Only if the key does not exist. |
replace | SET k v XX | Only if the key exists. |
append | APPEND | |
prepend | No single command | Read and write back in a WATCH/MULTI, or keep a list and LPUSH. |
incr / decr | INCRBY / DECRBY | See Counters below. |
touch | EXPIRE | |
gat (get and touch) | GETEX k EX <seconds> | |
gets + cas | WATCH / MULTI / EXEC, or SET ... IFEQ | See Compare-and-set below. |
delete | DEL | |
flush_all | FLUSHDB / FLUSHALL | |
| Client flags (32-bit per item) | No equivalent | See Client flags. |
stats | INFO | |
| Slab allocator, LRU per slab class | One memory limit (maxmemory) and an eviction policy | |
| Client-side consistent hashing over many servers | One server, or a cluster | See More than one server. |
| No persistence | Snapshots and an append-only file | Optional. |
| Strings only | Strings, hashes, lists, sets, sorted sets, streams, JSON, search, vectors | You can stop serializing whole objects into one string later; you don't have to. |
SASL (binary protocol), or -Y auth file (text protocol, experimental) | AUTH with a password, or ACL users | |
| TLS (when built with it) | The tls and full builds; always available on KiviDB Cloud |