Unverified Commit f97ce688 authored by Sean Bleier's avatar Sean Bleier Committed by GitHub

Merge pull request #186 from timgates42/bugfix_typo_volatile

docs: Fix simple typo, volitile -> volatile
parents 87e615ee 7ad6c92e
......@@ -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,
e.g. `cache.set('key', 'value', timeout=None)`
* 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 volitile.
seconds before it expires or None if the key is not volatile.
0.11.0
------
......
......@@ -368,7 +368,7 @@ class BaseRedisCache(BaseCache):
@get_client()
def ttl(self, client, key):
"""Returns the 'time-to-live' of a key. If the key is not volitile,
"""Returns the 'time-to-live' of a key. If the key is not volatile,
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
does not exist, 0 is returned.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment