当前位置: 首页>>代码示例>>Python>>正文


Python memcache.delete_multi方法代码示例

本文整理汇总了Python中google.appengine.api.memcache.delete_multi方法的典型用法代码示例。如果您正苦于以下问题:Python memcache.delete_multi方法的具体用法?Python memcache.delete_multi怎么用?Python memcache.delete_multi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在google.appengine.api.memcache的用法示例。


在下文中一共展示了memcache.delete_multi方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: DeleteMemcacheValues

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def DeleteMemcacheValues(cls, category, browsers):
        memcache.delete_multi(browsers, **cls.MemcacheParams(category)) 
开发者ID:elsigh,项目名称:browserscope,代码行数:4,代码来源:result_stats.py

示例2: flush_keyword_cache

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def flush_keyword_cache():
    return memcache.delete_multi(keys=["enable_keyword", "keyword",'pure_keyword']) 
开发者ID:liantian-cn,项目名称:RSSNewsGAE,代码行数:4,代码来源:models.py

示例3: flush_feed_cache

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def flush_feed_cache():
    return memcache.delete_multi(keys=["feed", "daily_feed", "hourly_feed", "quarterly_feed"]) 
开发者ID:liantian-cn,项目名称:RSSNewsGAE,代码行数:4,代码来源:models.py

示例4: ExpireAndLock

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def ExpireAndLock(self, timeout):
    """Marks this entry as deleted and locks it for the expiration time.

    Used to implement memcache's delete timeout behavior.

    Args:
      timeout: Parameter originally passed to memcache.delete or
        memcache.delete_multi to control deletion timeout.
    """
    self.will_expire = True
    self.locked = True
    self._SetExpiration(timeout) 
开发者ID:GoogleCloudPlatform,项目名称:python-compat-runtime,代码行数:14,代码来源:memcache_stub.py

示例5: delete

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def delete(self):
        try:
            query = _AppEngineUtilities_SessionData.all()
            query.filter("session_key = ", self.session_key)
            results = query.fetch(1000)
            db.delete(results)
            db.delete(self)
            memcache.delete_multi(["_AppEngineUtilities_Session_" + str(self.session_key), "_AppEngineUtilities_SessionData_" + str(self.session_key)])
        except:
            mc = memcache.get("_AppEngineUtilities_Session_" + str(self.session_key))
            mc.deleted = True
            memcache.set("_AppEngineUtilities_Session_" + str(self.session_key), mc) 
开发者ID:kuri65536,项目名称:python-for-android,代码行数:14,代码来源:sessions.py

示例6: ClearCache

# 需要导入模块: from google.appengine.api import memcache [as 别名]
# 或者: from google.appengine.api.memcache import delete_multi [as 别名]
def ClearCache():
  # TODO: determine why the just deleting our keys is insufficient:
  # memcache.delete_multi(keys=[_MEMCACHE_KEY_REPO_COLLECTIONS,
  #                       _MEMCACHE_KEY_TEMPLATES])
  memcache.flush_all() 
开发者ID:googlearchive,项目名称:cloud-playground,代码行数:7,代码来源:templates.py


注:本文中的google.appengine.api.memcache.delete_multi方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。