From 48f03a4a636d9b4650ca2b1233033db76c9d921c Mon Sep 17 00:00:00 2001 From: zyphlar Date: Fri, 10 Mar 2017 03:10:49 -0800 Subject: [PATCH] Mention ttl units in docs As far as I can tell, `ttl` is directly subtracted from time() in Gaufrette, which means it's in seconds. Good idea to document. --- Resources/docs/adapters/cache.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/docs/adapters/cache.md b/Resources/docs/adapters/cache.md index 4bc1745..7e016fd 100644 --- a/Resources/docs/adapters/cache.md +++ b/Resources/docs/adapters/cache.md @@ -6,7 +6,7 @@ Adapter which allows you to cache other adapters * `source` The source adapter that must be cached *(required)* * `cache` The adapter used to cache the source *(required)* - * `ttl` Time to live *(default 0)* + * `ttl` Time to live, in seconds *(default 0)* * `serializer` The adapter used to cache serializations *(default null)* ## Example @@ -35,4 +35,4 @@ knp_gaufrette: filesystems: media: adapter: media_cache -``` \ No newline at end of file +```