PHP code example of rob893 / emoji-cache
1. Go to this page and download the library: Download rob893/emoji-cache 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/ */
rob893 / emoji-cache example snippets
// Create new cache
$😈 = new 🐆🐆🐆();
$🔑 = 'foo';
$⚰️ = 12345;
// Check if cache has key. Will be false.
$😍 = $😈->🤔🤔🤔($🔑);
echo $😍;
// Set key value
$😈->✍️✍️✍️($🔑, $⚰️);
// Check if key exists. Will be true.
$💣 = $😈->🤔🤔🤔($🔑);
// Get value for key.
$⚔️ = $😈->🤔🤞😃($🔑);
// Get size of cache.
$📈 = $😈->👙💩🖇();
echo $💣;
echo $⚔️;
echo $📈;
// Clear cache.
$😈->❌❌❌();
// Check size again.
echo $😈->👙💩🖇();