示例#1
0
 def set_cached_choices(self,choices):
     if not self.cache_config['enabled']:
         return
     c = get_cache(self.cache_config['cache'])
     return c.set(self.cache_config['key']%self.field_path,choices)
示例#2
0
 def set_cached_choices(self,choices):
     if not self.cache_config['enabled']:
         return
     c = get_cache(self.cache_config['cache'])
     return c.set(self.cache_config['key']%self.field_path,choices)
示例#3
0
 def get_cached_choices(self):
     if not self.cache_config['enabled']:
         return None
     c = get_cache(self.cache_config['cache'])
     return c.get(self.cache_config['key']%self.field_path)
示例#4
0
 def get_cached_choices(self):
     if not self.cache_config['enabled']:
         return None
     c = get_cache(self.cache_config['cache'])
     return c.get(self.cache_config['key']%self.field_path)