Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Backport of cache functions from 2.4.x #281

Merged
merged 3 commits into from
Jan 13, 2015
Merged

Backport of cache functions from 2.4.x #281

merged 3 commits into from
Jan 13, 2015

Conversation

bruth
Copy link
Contributor

@bruth bruth commented Jan 13, 2015

This is a prerequisite for chop-dbhi/serrano#255 and chop-dbhi/serrano#256.

This includes the non-instance logic from instance_cache_key. In addition
a warning is emitted for types that do not implement the __getstate__ method
for pickling.

Fix #258

Signed-off-by: Byron Ruth <b@devel.io>
Memcache does not support control characters, so hashing the constructed key
and getting the hex digest prevents this from being a problem.

Signed-off-by: Byron Ruth <b@devel.io>
Signed-off-by: Byron Ruth <b@devel.io>
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 1d17f28 on backport-cache into 2c09df4 on 2.3.x.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 1d17f28 on backport-cache into 2c09df4 on 2.3.x.

@bruth bruth changed the title Backport of new cache functions Backport of cache functions from 2.4.x Jan 13, 2015
bruth added a commit that referenced this pull request Jan 13, 2015
Backport of cache functions from 2.4.x
@bruth bruth merged commit d77407c into 2.3.x Jan 13, 2015
@bruth bruth deleted the backport-cache branch January 13, 2015 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants