from __future__ import absolute_import

import redisext.models.abc


class Stack(redisext.models.abc.Model):
    def pop(self):
        '''
        Pop item from stack.
        '''
        item = self.connect_to_master().lpop(self.key)
        return self.decode(item)

    def push(self, item):
        '''
        Push item into queue.

        :returns: number of items in queue
        :rtype: int
        '''
        item = self.encode(item)
        return self.connect_to_master().lpush(self.key, item)

cc58881f5c373e9a740d1e9b80c04bc67d0d3f82
<mask token>


class Stack(redisext.models.abc.Model):
    <mask token>
    <mask token>

<mask token>


class Stack(redisext.models.abc.Model):
    <mask token>

    def push(self, item):
        """
        Push item into queue.

        :returns: number of items in queue
        :rtype: int
        """
        item = self.encode(item)
        return self.connect_to_master().lpush(self.key, item)

<mask token>


class Stack(redisext.models.abc.Model):

    def pop(self):
        """
        Pop item from stack.
        """
        item = self.connect_to_master().lpop(self.key)
        return self.decode(item)

    def push(self, item):
        """
        Push item into queue.

        :returns: number of items in queue
        :rtype: int
        """
        item = self.encode(item)
        return self.connect_to_master().lpush(self.key, item)

from __future__ import absolute_import
import redisext.models.abc


class Stack(redisext.models.abc.Model):

    def pop(self):
        """
        Pop item from stack.
        """
        item = self.connect_to_master().lpop(self.key)
        return self.decode(item)

    def push(self, item):
        """
        Push item into queue.

        :returns: number of items in queue
        :rtype: int
        """
        item = self.encode(item)
        return self.connect_to_master().lpush(self.key, item)

from __future__ import absolute_import

import redisext.models.abc


class Stack(redisext.models.abc.Model):
    def pop(self):
        '''
        Pop item from stack.
        '''
        item = self.connect_to_master().lpop(self.key)
        return self.decode(item)

    def push(self, item):
        '''
        Push item into queue.

        :returns: number of items in queue
        :rtype: int
        '''
        item = self.encode(item)
        return self.connect_to_master().lpush(self.key, item)
