Pop the first object from the left.

        :param name: str     the name of the redis key
        :return: Future()
168905
def lpop(self, name):
        
        with self.pipe as pipe:
            f = Future()
            res = pipe.lpop(self.redis_key(name))

            def cb():
                f.set(self.valueparse.decode(res.result))

            pipe.on_execute(cb)
            return f
1351137
def restore(self, name, value, pttl=0):
        
        with self.pipe as pipe:
            res = pipe.restore(self.redis_key(name), ttl=pttl, value=value)
            f = Future()

            def cb():
                f.set(self.valueparse.decode(res.result))

            pipe.on_execute(cb)
            return f
332132
def pop(self):
        
        member = self.client.spop(self.name)
        if member is not None:
            return member
        raise KeyError()
1166982
def hlen(self, name):
        
        with self.pipe as pipe:
            return pipe.hlen(self.redis_key(name))
863936
async def hsetnx(self, name, key, value):
        
        return await self.execute_command('HSETNX', name, key, value)
151963
def setnx(self, name, value):
        
        with self.pipe as pipe:
            return pipe.setnx(self.redis_key(name),
                              self.valueparse.encode(value))
575763
def ttl(self, name):
        
        with self.pipe as pipe:
            return pipe.ttl(self.redis_key(name))
756140
def pop(self, key, resource_type):
        
        with self._objects_queue_lock:
            objects = self._objects_queue[key].get(resource_type, [])
            return objects.pop() if objects else None
914875
def expire(self, name, time):
        
        with self.pipe as pipe:
            return pipe.expire(self.redis_key(name), time)
1325352
def popitem(self):
        """"""
        try:
            key = next(iter(self.__order))
        except StopIteration:
            raise KeyError('%s is empty' % self.__class__.__name__)
        else:
            return (key, self.pop(key))
162505
def pop(self, key):
        """"""
        arr = dict.pop(self, key).copy()
        self.remover(key)
        return arr
636876
def ltrim(self, name, start, end):
        
        with self.pipe as pipe:
            return pipe.ltrim(self.redis_key(name), start, end)
420040
def next(self):
        
        if self.blocking >= 0:
            # returns queue name and item, we just need item
            res = self.redis.blpop([self.name], timeout=self.blocking)
            if res:
                res = res[1]
        else:
            res = self.redis.lpop(self.name)
        value = self.deserialize(res)
        logger.debug('Popped from "%s": %s', self.name, repr(value))
        return value
209729
def strlen(self, name):
        
        with self.pipe as pipe:
            return pipe.strlen(self.redis_key(name))
347224
def zremrangebyrank(self, name, min, max):
        
        with self.pipe as pipe:
            return pipe.zremrangebyrank(self.redis_key(name), min, max)
57151
def pop(self, key, default=None):
        ""
        if not isinstance(key, tuple): key = (key,)
        return self.data.pop(key, default)
783385
def popitem(self):
        
        try:
            value = next(iter(self))
            key = value[self._keycol]
        except StopIteration:
            raise KeyError
        del self[key]
        return key, value