Commit 812cba75 authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

Add function to clear the cache

parent 065e6c83
......@@ -51,6 +51,14 @@ cache_init() {
}
cache_destroy() {
rm -f "$CRYPTO_WRAPPER_ROOT"/key_*
rm -f "$CRYPTO_WRAPPER_ROOT"/hash_*
[ -d "$CRYPTO_WRAPPER_ROOT" ] && rmdir "$CRYPTO_WRAPPER_ROOT"
return 0
}
# key should be sha256 hash (HASH_TYPE)
cache_set() {
local key="$1"
......
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