001    package railo.runtime.cache.util;
002    
003    import railo.commons.io.cache.CacheKeyFilter;
004    
005    /**
006     * accept everything
007     */
008    public class CacheKeyFilterAll implements CacheKeyFilter {
009    
010            private static CacheKeyFilterAll instance=new CacheKeyFilterAll();
011    
012            /**
013             * @see railo.commons.io.cache.CacheKeyFilter#accept(java.lang.String)
014             */
015            public boolean accept(String key) {
016                    return true;
017            }
018    
019            /**
020             * @see railo.commons.io.cache.CacheFilter#toPattern()
021             */
022            public String toPattern() {
023                    return "*";
024            }
025    
026            public static CacheKeyFilterAll getInstance() {
027                    return instance;
028            }
029    
030    }