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

Commits on Jan 13, 2015

  1. Implement general purpose cache_key function

    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>
    bruth committed Jan 13, 2015
    Configuration menu
    Copy the full SHA
    4e843e3 View commit details
    Browse the repository at this point in the history
  2. Move cache key hashing into CACHE_KEY_FUNC

    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>
    bruth committed Jan 13, 2015
    Configuration menu
    Copy the full SHA
    0393d2f View commit details
    Browse the repository at this point in the history
  3. Refactor cache_key_func into standard function

    Signed-off-by: Byron Ruth <b@devel.io>
    bruth committed Jan 13, 2015
    Configuration menu
    Copy the full SHA
    1d17f28 View commit details
    Browse the repository at this point in the history