Bluz\Proxy\Cache
Proxy to Cache
Example of usage
use Bluz\Proxy\Cache;
if (!$result = Cache::get('some unique id')) {
$result = 2*2;
Cache::set('some unique id', $result);
}
- Author: Anton Shevchuk
Synopsis
- // constants
- const TTL_NO_EXPIRY = 0;
- // members
- private static array $pools = ;
- // methods
- private static Instance|false initInstance()
- public static Instance|false getAdapter()
- public static mixed get()
- public static bool set()
- public static string prepare()
- public static bool clearTag()
- public static bool clearTags()
- // Inherited methods from ProxyTrait
- public static void setInstance()
- public static mixed __callStatic()
- // Inherited methods from Singleton
- public static Cache getInstance()
- public static void resetInstance()
Hierarchy
Constants
Name | Value |
---|---|
TTL_NO_EXPIRY | 0 |
Members
Methods
private
- initInstance() — Init cache instance
public
- clearTag() — Clear cache items by tag
- clearTags() — Clear cache items by tags
- get() — Get value of cache item
- getAdapter() — Get Cache Adapter
- prepare() — Prepare key
- set() — Set value of cache item
Inherited from Bluz\Proxy\ProxyTrait
public
- __callStatic() — Handle dynamic, static calls to the object.
- setInstance() — Set or replace instance
Inherited from Bluz\Common\Singleton
public
- getInstance() — Get instance
- resetInstance() — Reset instance
History
-
2017-09-06T11:28:48+00:00 (commit #69b3317)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Migrate to new Interface for Cache package Added method `Proxy\Cache::clearTag()`
-
2017-08-30T14:59:17+00:00 (commit #034de77)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small codestyle fixes
-
2017-07-26T12:46:33+00:00 (commit #b81814d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Validator refactoring
-
2017-07-06T15:08:00+00:00 (commit #8bfc97b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Controller refactoring
-
2017-06-30T11:02:27+00:00 (commit #347a99b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Changed all Proxy classes, mark all of them as `final`
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-21T15:13:17+00:00 (commit #5e9b7bc)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small codestyle fixes
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-04-12T09:45:17+00:00 (commit #e8463fb)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed controller cache issue
-
2017-04-04T10:34:31+00:00 (commit #93898bd)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed error with FileSystemCache
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-02-02T15:53:34+00:00 (commit #dab767f)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Make true Singleton Trait
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`