Commits

Anonymous committed 26cde0a

Submitted by: Andres March

CACHE-145 removeEntry(String key) has been made public and exposed in the GeneralCacheAdministrator

Comments (0)

Files changed (2)

src/core/java/com/opensymphony/oscache/base/Cache.java

      *
      * @param key The key of the entry to remove.
      */
-    protected void removeEntry(String key) {
+    public void removeEntry(String key) {
         removeEntry(key, null);
     }
 

src/core/java/com/opensymphony/oscache/general/GeneralCacheAdministrator.java

     public Cache getCache() {
         return applicationCache;
     }
-
+    
+    /**
+     * Remove an object from the cache
+     *
+     * @param key             The key entered by the user.
+     */
+    public void removeEntry(String key) {
+        getCache().removeEntry(key);
+    }
     /**
      * Get an object from the cache
      *