Clear a list in Redis
DEL my_list_key
That's all you need to do. This will delete (aka clear) the list.
Redis is an advanced key-value system, therefore every item (lists, strings, sets, hashes, etc) has a key reference and can be deleted.
See DEL for more information.
Written by Tyler King
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Redis
Authors
Related Tags
#redis
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#