title: How to limit the result returned by SMEMBERS in Redis python?
body: <p>I have a Redis database which contains a collection of sets and each set contains the objects of  size around 200Kb. The cardinality of each set is different and would be increasing forever.</p>
  <p>The problem is when I execute SMEMBERS  command, I get all the members of set in one shot which consumes all of the available memory. So here I want to limit or cap the number of members returned to save the process from going out of memory.</p>
  <p>I am using redis package for python. Also I couldn't find any helpful information in the documentation.</p>
  <p>Can anyone suggest the practical solution?</p>
  <p>Here the python code I use to get data from redis:</p>
  <p><code>result = redisclient.smembers(key)</code></p>