<commit_before><?php
namespace Cachet;

interface Backend
{
    /**
     * Retrieves a cache item from the cache. This does not check
     * whether the item has expired - this is up to the outer cache.
     * @param string key to look up
     * @return Cachet\Item
     */
    function get($cacheId, $key);
    
    /**
     * @return void
     */
    function set(Item $item);
    
    /**
     * Delete value from the cache that corresponds to the key.
     * This method is not required to return any value indicating
     * success or failure.
     * @return void
     */
    function delete($cacheId, $key);
    
    function flush($cacheId);
}<commit_msg>documentation<commit_after><?php
namespace Cachet;

interface Backend
{
    /**
     * Retrieves an item from the backend. This does not check
     * whether the item has expired - this is up to the Cachet\Cache.
     * This must return null if the item is not found
     * @param string key to look up
     * @return Cachet\Item|null
     */
    function get($cacheId, $key);
    
    /**
     * @return void
     */
    function set(Item $item);
    
    /**
     * Delete value from the cache that corresponds to the key.
     * This method is not required to return any value indicating
     * success or failure.
     * @return void
     */
    function delete($cacheId, $key);
    
    /**
     * @return void
     */
    function flush($cacheId);
}
{'fraction_non_alphanumeric': 0.09456598447424136, 'fraction_numerical': 0.0, 'mean_word_length': 2.1441241685144123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7622624', 'n_tokens_mistral': 402, 'n_tokens_neox': 399, 'n_words': 158}