lettuce
lettuce copied to clipboard
streaming or callback api for sets/lists
Is there any plan for a streaming-based API for things like smembers, lrange or zrange?
There can be a huge number of items there, and it'd be great if a streaming or callback API was available that avoided loading the whole set/list/range into memory when retrieving.
Hi @flozano take a look at https://github.com/mp911de/lettuce#streaming-api. I've added an example for a Streaming API. Let me know what you think.