[ticket/303] Add sql_exists to cache mock

B3P-303