Skip to content

Commit f97ce68

Browse files
authored
Merge pull request sebleier#186 from timgates42/bugfix_typo_volatile
docs: Fix simple typo, volitile -> volatile
2 parents 87e615e + 7ad6c92 commit f97ce68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ This will lead to some cache misses, so be aware.
164164
* Keys can now be kept alive indefinitely by setting the timeout to None,
165165
e.g. `cache.set('key', 'value', timeout=None)`
166166
* Adds `ttl` method to the cache. `cache.ttl(key)` will return the number of
167-
seconds before it expires or None if the key is not volitile.
167+
seconds before it expires or None if the key is not volatile.
168168

169169
0.11.0
170170
------

redis_cache/backends/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def has_key(self, client, key):
368368

369369
@get_client()
370370
def ttl(self, client, key):
371-
"""Returns the 'time-to-live' of a key. If the key is not volitile,
371+
"""Returns the 'time-to-live' of a key. If the key is not volatile,
372372
i.e. it has not set expiration, then the value returned is None.
373373
Otherwise, the value is the number of seconds remaining. If the key
374374
does not exist, 0 is returned.

0 commit comments

Comments
 (0)