django-redis-cache

码农软件 · 软件分类 · 缓存系统 · 2019-08-30 15:57:16

软件介绍

django-redis-cache 是一个开源项目,代码不多,主要功能是提供 Redis 作为 django 缓存层的功能。

下面是其用法的简单介绍。使用方法:

  • 1. 运行 setup.py 安装 django-redis-cache 扩展
  • 2. 按如下方法修改django的设置

Django 版本 < 1.3,修改如下配置:

CACHE_BACKEND = 'redis_cache.cache://< host >:< port >'

Django 版本 > 1.3,修改如下配置:

CACHES = {
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': '< host >:< port >',
'OPTIONS': { # optional
'DB': 1,
'PASSWORD': 'yadayada',
},
},
}

本文地址:https://codercto.com/soft/d/13508.html

Mastering JavaServer Faces

Mastering JavaServer Faces

Bill Dudney、Jonathan Lehr、Bill Willis、LeRoy Mattingly / Wiley / 2004-6-7 / USD 40.00

Harness the power of JavaServer Faces to create your own server-side user interfaces for the Web This innovative book arms you with the tools to utilize JavaServer Faces (JSF), a new standard that wi......一起来看看 《Mastering JavaServer Faces》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具