added caching for the repositorymanager

This commit is contained in:
Sebastian Sdorra
2010-10-14 07:58:51 +02:00
parent 8d8f74bce3
commit e891d762fb
10 changed files with 749 additions and 1 deletions

View File

@@ -0,0 +1,56 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sonia.scm.cache;
/**
*
* @author Sebastian Sdorra
*
* @param <K>
* @param <V>
*/
public interface SimpleCache<K, V>
{
/**
* Method description
*
*/
public void clear();
/**
* Method description
*
*
* @param key
* @param value
*/
public void put(K key, V value);
/**
* Method description
*
*
* @param key
*
* @return
*/
public boolean remove(K key);
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @param key
*
* @return
*/
public V get(K key);
}