chore: set version 0.2.0

This commit is contained in:
long2ice
2023-01-11 21:20:41 +08:00
parent 09361a7d4f
commit 59a47b7fae
5 changed files with 10 additions and 12 deletions

View File

@@ -132,7 +132,9 @@ def cache(
return coder.decode(ret)
ret = await ensure_async_func(*args, **kwargs)
try:
await backend.set(cache_key, coder.encode(ret), expire or FastAPICache.get_expire())
await backend.set(
cache_key, coder.encode(ret), expire or FastAPICache.get_expire()
)
except ConnectionError:
pass
return ret