Source of file class-cache.php
Size: 1,537 Bytes - Last Modified: 2016-01-05T15:40:14-05:00
../src/lib/class-cache.php
1234567891011121314151617181920212223242526272829303132333435
Covered by 1 test(s):
3637383940414243444546
Covered by 1 test(s):
4748495051525354555657
Covered by 1 test(s):
58
Covered by 1 test(s):
59
Covered by 1 test(s):
60
Covered by 1 test(s):
61
Covered by 1 test(s):
62
Covered by 1 test(s):
63
Covered by 1 test(s):
6465
| <?php /** * Cache Class * * @category PHP * @package WpWodify * @subpackage Cache * @since File available since release 1.0.x * @author Cory Collier <corycollier@corycollier.com> */ namespace WpWodify; /** * Cache Class * * Encapsulation of all things related to Caching data * * @category PHP * @package WpWodify * @subpackage Cache * @since Class available since release 1.0.x * @author Cory Collier <corycollier@corycollier.com> */ class Cache { /** * Setter for the cache. * * @param string $name The name to store the data as. * @param mixed $data The value of the data to store. * * @return WpWodify\Cache Returns $this, for object-chaining. */ public function set( $name, $data = null ) { return $this; } /** * Gets a cache value for a given name value. * * @param string $name the name of the cache to retrieve. * * @return mixed The value for the cache. */ public function get( $name ) { return false; } /** * Creates a ID from an array of parameters. * * @param array $params An array of arbitrary parameters. * * @return string The identifier to match the parameters. */ public function create_identifier( $params ) { $result = ''; $sep = ''; foreach ( $params as $key => $value ) { $result .= $sep . $key . '-' . $value; $sep = '-'; } return $result; } } |