From caac7f572cf335e96ee99f8a3af7395df471baf8 Mon Sep 17 00:00:00 2001 From: Dag Date: Thu, 6 Jul 2023 15:10:30 +0200 Subject: refacor: improve cache interface (#3492) * fix: proper typehint on setScope * refactor: type hint setKey() * typehint --- docs/07_Cache_API/01_How_to_create_a_new_cache.md | 23 +------- docs/07_Cache_API/02_CacheInterface.md | 71 ++++------------------- 2 files changed, 12 insertions(+), 82 deletions(-) (limited to 'docs/07_Cache_API') diff --git a/docs/07_Cache_API/01_How_to_create_a_new_cache.md b/docs/07_Cache_API/01_How_to_create_a_new_cache.md index fe171718..cfc30308 100644 --- a/docs/07_Cache_API/01_How_to_create_a_new_cache.md +++ b/docs/07_Cache_API/01_How_to_create_a_new_cache.md @@ -1,24 +1,3 @@ Create a new file in the `caches/` folder (see [Folder structure](../04_For_Developers/03_Folder_structure.md)). -The file must be named according to following specification: - -* It starts with the type -* The file name must end with 'Cache' -* The file type must be PHP, written in small letters (seriously!) ".php" - -**Examples:** - -Type | Filename ------|--------- -File | FileCache.php -MySQL | MySQLCache.php - -The file must start with the PHP tags and end with an empty line. The closing tag `?>` is [omitted](http://php.net/basic-syntax.instruction-separation). - -Example: - -```PHP -