WpWodify\Cache::set
Setter for the cache.
Signature
public function set(string
$name,
[mixed
$data = null] )
Parameters
$name
— string- The name to store the data as.
$data
— mixed- The value of the data to store.
Returns
- Cache
- Returns $this, for object-chaining.
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — WpWodify\CacheTest::testSet with data set #0