API

Models

class redisext.counter.Counter(key=None)
get()

Get counter’s value.

Returns:counter’s value
Return type:int
incr(value=1)

Increment counter by value.

Parameters:value (int) – value to add
Returns:counter’s value
Return type:int
class redisext.hashmap.Map(key=None)
decr(value=1)

Decrease stored value.

Parameters:value (int) – value to add
Returns:current value
exists()

Returns status if key exists or not

Returns:existence
Return type:bool
get()

Get stored value.

Returns:stored value
incr(value=1)

Increase stored value.

Parameters:value (int) – value to add
Returns:current value
remove()

Remove value from map.

Returns:status of removal
Return type:bool
set(value)

Store value into map.

Parameters:value
Returns:status if value saved or not
Return type:bool
class redisext.pool.Pool(key=None)
contains(item)

Check if pool contains item

Return type:bool
members()

List all pool items.

Return type:list
pop()

Pop item from pool.

Returns:obviously item
Return type:how knows(serializer knows)
push(item)

Place item into pool.

Parameters:item – whatever you need to place into pool
Return type:bool
class redisext.queue.Queue(key=None)
items()

Get all queue items.

Returns:ordered list of items
Return type:list
pop()

Pop item from queue.

Returns:item from queue
push(item)

Push item into queue.

Parameters:item
Returns:number of items in queue
Return type:int
size()

Get queue size.

Returns:number of items in queue
Return type:int
class redisext.stack.Stack(key=None)
pop()

Pop item from stack.

push(item)

Push item into queue.

Returns:number of items in queue
Return type:int

Serializers

class redisext.serializer.JSON
class redisext.serializer.String
class redisext.serializer.Numeric
class redisext.serializer.Pickle