def set_permission_cache(user, key, value):
 from django.core.cache import cache
 cache_key = get_cache_key(user, key)
 cache.set(cache_key, value, get_cms_setting('CACHE_DURATIONS')['permissions'], version=get_cache_permission_version())

def set_permission_cache ( user , key , value ) : from django . core . cache import cache cache_key = get_cache_key ( user , key ) cache . set ( cache_key , value , get_cms_setting ( 'CACHE_DURATIONS' ) [ 'permissions' ] , version = get_cache_permission_version ( ) )
helper method for storing values in cache .