Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

It appears that the cache put add option is being ignored #54

Closed
gkappel opened this Issue · 2 comments

3 participants

@gkappel
udq_expires = 60 # 1 min
udq = ironcache.put(cache='mycache',
                    key='mykey',
                    value=0,
                    options={'add':True,
                             'expires_in':udq_expires})
udq = ironcache.increment(cache='mycache',key='mykey')
udq = ironcache.put(cache='mycache',
                    key='mykey',
                    value=0,
                    options={'add':True,
                             'expires_in':udq_expires})
udq = ironcache.increment(cache='mycache',key='mykey')
udq = ironcache.put(cache='mycache',
                    key='mykey',
                    value=0,
                    options={'add':True,
                             'expires_in':udq_expires})
udq = ironcache.increment(cache='mycache',key='mykey')
print udq.value # should be 3 but it is 1
@edsrzf edsrzf was assigned
@treeder
Owner

We're looking into this now.

@edsrzf
Collaborator

This ended up being harder to fix than expected, but it should finally be working.

@edsrzf edsrzf closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.