Cache.php
Table of Contents
Functions
- bb_cache() : mixed
- Puts an Object in the Cache
- bb_cache_get() : mixed
- Returns a Item from the cache if its not expired, else null
- bb_cache_clear() : void
- Clears everything in the Cache
Functions
bb_cache()
Puts an Object in the Cache
bb_cache(mixed $key, mixed $obj[, bool $session = false ]) : mixed
Parameters
- $key : mixed
-
The Key the Item will stored by (must be unique, will be overwritten elsewise)
- $obj : mixed
-
The Object to Store (can be CacheObject with own CachePolicy, else default CachePolicy will used)
- $session : bool = false
-
Store the Item in the Session Cache?
bb_cache_get()
Returns a Item from the cache if its not expired, else null
bb_cache_get(mixed $key[, bool $session = false ]) : mixed
Parameters
- $key : mixed
-
Key the Item is stored in the Cache
- $session : bool = false
-
Is the Item stored in the Session Cache?
bb_cache_clear()
Clears everything in the Cache
bb_cache_clear([bool $session = false ]) : void
Parameters
- $session : bool = false
-
If true, the session will be cleared, else only the just-in-time cache