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

Closed
gkappel opened this Issue Mar 5, 2013 · 2 comments

Comments

Projects
None yet
3 participants

gkappel commented Mar 5, 2013

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

@ghost ghost assigned edsrzf Mar 5, 2013

Contributor

treeder commented Mar 13, 2013

We're looking into this now.

edsrzf commented Apr 16, 2013

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

@edsrzf edsrzf closed this Apr 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment