Django Book 翻译
菜单>:
TOC
返回
原文:
For cases like this, Django exposes a simple, low-level cache API, which lives in the module ``django.core.cache`` . You can use the low-level cache API to store objects in the cache with any level of granularity you like. You can cache any Python object that can be pickled safely: strings, dictionaries, lists of model objects, and so forth. (Most common Python objects can be pickled; refer to the Python documentation for more information about pickling.)
翻译:
在像这样的情形下, Django 展示了一种位于 ``django.core.cache`` 模块中的简单、低层次的缓存 API 。你可以使用这种低层次的缓存 API 在缓存中以任何级别粒度进行对象储存。你可以对所有能够安全进行 pickle 处理的 Python 对象进行缓存:字符串、字典和模型对象列表等等;查阅 Python 文档可以了解到更多关于 pickling 的信息。)
备注:
译者: