Skip to content

Delete doesn't invalidate the cache #15

@nephlm

Description

@nephlm

If you instantiate NoDB and set cache to True, then you can save and object and delete the object.

If you load the object at at this point, the deleted object will be returned since it's still in the cache. Delete is not cache aware; it deletes from the s3 bucket, but doesn't update the cache.

nodb=NoDB()
nodb.cache=True
nodb.index = 'name'
nodb.save({'name': 'jeff', 'age': 19})
nodb.delete('jeff')
nodb.load('jeff') #=> {'name': 'jeff', 'age': 19}

That's probably not the expected behavior.

Metadata

Metadata

Assignees

Labels

Waiting on PyPIFixed in Master, waiting on PyPI to be updatedbug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions