eskirex/cache

Eskirex Cache Component

1.0.0 2017-12-19 23:22 UTC

This package is not auto-updated.

Last update: 2024-05-12 02:20:47 UTC


README

Hello. This is Cache component.

Examples

<?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
    // )

License

MIT