PHP code example of redcode / aerospike-cache-provider

1. Go to this page and download the library: Download redcode/aerospike-cache-provider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

redcode / aerospike-cache-provider example snippets


// pre-configured Aerospike connection
$aerospike = new \Aerospike();
$cache = new AerospikeCache($aerospike);
$cache->save('test', 'value', 60);
$value = $cache->fetch('test');