@Override
    public void deleteOneEntryUsingCachePolicy() {
        IndexEventHolder indexEventHolder = (IndexEventHolder) stateHolder.getState().getEventHolder();
        Set<Object> keys = indexEventHolder.getAllPrimaryKeyValues();
        int minCount = Integer.MAX_VALUE;
        Object keyOfMinCount = null;
        for (Object key : keys) {
            Object[] data = indexEventHolder.getEvent(key).getOutputData();
            int count = (int) data[cachePolicyAttributePosition];
            if (count < minCount) {
                minCount = count;
                keyOfMinCount = key;
            }
        }
        indexEventHolder.deleteEvent(keyOfMinCount);
    }
cache table with FIFO entry removal
modules/siddhi-core/src/main/java/io/siddhi/core/table/CacheTableLFU.java