#! /bin/bash test_path() { cache path abc | tr '/' '\n' | tail -n 1 | grep -q . } test_get_put_get() { export CACHE_DURATION=10 ! cache get abc echo hi | cache put abc > /dev/null cache get abc | grep -q . }