tileserver should not depend on django
This commit is contained in:
parent
7754643c4b
commit
f1d5b0ffad
3 changed files with 10 additions and 11 deletions
8
src/c3nav/mapdata/utils/cache/stats.py
vendored
Normal file
8
src/c3nav/mapdata/utils/cache/stats.py
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
from django.core.cache import cache
|
||||
|
||||
|
||||
def increment_cache_key(cache_key):
|
||||
try:
|
||||
cache.incr(cache_key)
|
||||
except ValueError:
|
||||
cache.set(cache_key, 0, None)
|
Loading…
Add table
Add a link
Reference in a new issue