@Override
    protected CompiledCondition compileCondition(ExpressionBuilder expressionBuilder) {
        TestStoreConditionVisitor visitor = new TestStoreConditionVisitor(inMemoryTable.getTableDefinition().getId());
        expressionBuilder.build(visitor);
        if (expressionBuilder.getSiddhiQueryContext().getName().startsWith("store_select_query_")) {
            expressionBuilder.getMatchingMetaInfoHolder().getMetaStateEvent().getMetaStreamEvent(0).
                    setEventType(MetaStreamEvent.EventType.TABLE);
        }
        return inMemoryTable.compileCondition(expressionBuilder.getExpression(),
                expressionBuilder.getMatchingMetaInfoHolder(), expressionBuilder.getVariableExpressionExecutors(),
                expressionBuilder.getTableMap(), expressionBuilder.getSiddhiQueryContext());
    }
Custom store for testing of in memory cache for store tables.
modules/siddhi-core/src/test/java/io/siddhi/core/query/table/util/TestStoreForCacheMiss.java