Orpheus icon indicating copy to clipboard operation
Orpheus copied to clipboard

Dynamic keys: create a set behind-the-scenes with all the dynamic keys names

Open Radagaisus opened this issue 9 years ago • 0 comments

Great for iterating over dynamic keys.

Assuming:

@zset 'books', key: (author) -> "books:#{author}"

Allow developers to query a books_keys for all the dynamic keys that were generated. Or, .dynamic_keys_for('books'), or .keys_for('books'), or .keys('books'), or other options.

The end-developers will manually need to remove items from these lists, as there's no easy (or necessary) way to automatically do this for them.

Radagaisus avatar Jul 19 '15 03:07 Radagaisus