test cache
parent
daaa266186
commit
155cfe1851
|
|
@ -0,0 +1,12 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
test_path() {
|
||||||
|
cache path abc | tr '/' '\n' | tail -n 1 | grep -q $(echo -n abc | base64)
|
||||||
|
}
|
||||||
|
|
||||||
|
test_get_put_get() {
|
||||||
|
export CACHE_DURATION=10
|
||||||
|
! cache get abc
|
||||||
|
echo hi | cache put abc > /dev/null
|
||||||
|
cache get abc | grep -q .
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue