<commit_before>package org.cacheonix.impl.cache.distributed.partitioned;

import org.cacheonix.impl.cache.item.Binary;
import org.cacheonix.impl.cache.item.InvalidObjectException;
import org.cacheonix.impl.cache.store.ReadableElement;
import org.cacheonix.impl.clock.Time;
import org.cacheonix.impl.config.FrontCacheConfiguration;

/**
 * Created by simeshev on 10/19/15.
 */
public interface FrontCache {

   void put(Binary key, Binary value, Time expirationTime);

   /**
    * Clears front cache.
    */
   void clear();

   ReadableElement get(Binary key) throws InvalidObjectException;

   /**
    * Returns the configuration of this front cache.
    *
    * @return the configuration of this front cache.
    */
   FrontCacheConfiguration getFrontCacheConfiguration();

   /**
    * Clears bucket cache.
    *
    * @param bucketNumber the bucket number to invalidate.
    */
   void clearBucket(int bucketNumber);
}<commit_msg>Code quality: added a Javadoc<commit_after>package org.cacheonix.impl.cache.distributed.partitioned;

import org.cacheonix.impl.cache.item.Binary;
import org.cacheonix.impl.cache.item.InvalidObjectException;
import org.cacheonix.impl.cache.store.ReadableElement;
import org.cacheonix.impl.clock.Time;
import org.cacheonix.impl.config.FrontCacheConfiguration;

/**
 * A front cache is a cache used by the partitioned cache to keep frequently used remote keys locally.
 */
public interface FrontCache {

   void put(Binary key, Binary value, Time expirationTime);

   /**
    * Clears front cache.
    */
   void clear();

   ReadableElement get(Binary key) throws InvalidObjectException;

   /**
    * Returns the configuration of this front cache.
    *
    * @return the configuration of this front cache.
    */
   FrontCacheConfiguration getFrontCacheConfiguration();

   /**
    * Clears bucket cache.
    *
    * @param bucketNumber the bucket number to invalidate.
    */
   void clearBucket(int bucketNumber);
}
{'fraction_non_alphanumeric': 0.09575012800819252, 'fraction_numerical': 0.0030721966205837174, 'mean_word_length': 3.6971153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7660991', 'n_tokens_mistral': 570, 'n_tokens_neox': 546, 'n_words': 149}