eskirex/cache

Eskirex 缓存组件

1.0.0 2017-12-19 23:22 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:01:42 UTC


README

你好。这是缓存组件。

示例

<?php
    use Eskirex\Component\Cache\VariableCache;
    
    require __DIR__ . '/vendor/autoload.php';
    
    $cacheNode1 = new VariableCache('foo_bar_baz');
    
    $cacheNode1->set('foo', [
        'bar' => 'baz'
    ]);
    
    print_r($cacheNode1->get('foo'));
    // Array
    // (
    //     [bar] => baz
    // )
    
    
    $cacheNode2 = new VariableCache('foo_bar_baz');
    
    print_r($cacheNode2->get('foo'));
    // Array
    // (
    //     [bar] => baz
    // )

许可

MIT