Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
f97ce688
Unverified
Commit
f97ce688
authored
Mar 05, 2020
by
Sean Bleier
Committed by
GitHub
Mar 05, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #186 from timgates42/bugfix_typo_volatile
docs: Fix simple typo, volitile -> volatile
parents
87e615ee
7ad6c92e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.rst
README.rst
+1
-1
base.py
redis_cache/backends/base.py
+1
-1
No files found.
README.rst
View file @
f97ce688
...
@@ -164,7 +164,7 @@ This will lead to some cache misses, so be aware.
...
@@ -164,7 +164,7 @@ This will lead to some cache misses, so be aware.
* Keys can now be kept alive indefinitely by setting the timeout to None,
* Keys can now be kept alive indefinitely by setting the timeout to None,
e.g. `cache.set('key', 'value', timeout=None)`
e.g. `cache.set('key', 'value', timeout=None)`
* Adds `ttl` method to the cache. `cache.ttl(key)` will return the number of
* Adds `ttl` method to the cache. `cache.ttl(key)` will return the number of
seconds before it expires or None if the key is not vol
i
tile.
seconds before it expires or None if the key is not vol
a
tile.
0.11.0
0.11.0
------
------
...
...
redis_cache/backends/base.py
View file @
f97ce688
...
@@ -368,7 +368,7 @@ class BaseRedisCache(BaseCache):
...
@@ -368,7 +368,7 @@ class BaseRedisCache(BaseCache):
@
get_client
()
@
get_client
()
def
ttl
(
self
,
client
,
key
):
def
ttl
(
self
,
client
,
key
):
"""Returns the 'time-to-live' of a key. If the key is not vol
i
tile,
"""Returns the 'time-to-live' of a key. If the key is not vol
a
tile,
i.e. it has not set expiration, then the value returned is None.
i.e. it has not set expiration, then the value returned is None.
Otherwise, the value is the number of seconds remaining. If the key
Otherwise, the value is the number of seconds remaining. If the key
does not exist, 0 is returned.
does not exist, 0 is returned.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment