Add new key to the front of the list LPUSH last10keys key Retain only the last 10 LTRIM last10keys 0 9 Get the last keys - will return 10 or less LRANGE mylist 0 9