Tuesday, February 6, 2024

Redis Cache cookbook

-AWS Elastic cache flavor-> Redis 

-Each url treated as key and redis store the result

-This has fix lenngth of keys, and use LRU to remove the results

Start server: 

redis-server 

EXISTS mykey 

SET mykey "Hello"

GET myKey

MGET myKey nonExistentKey

PERSIST myKey

INFO server

INFO keyspace

DEL myKey

TTL myKey

EXPIRE myKey 120

KEYS my*


No comments:

Post a Comment