in pyignite/api/key_value.py [0:0]
def __cache_remove_if_equals(connection, cache_info, key, sample, key_hint, sample_hint):
query_struct = Query(
OP_CACHE_REMOVE_IF_EQUALS,
[
('cache_info', CacheInfo),
('key', key_hint or AnyDataObject),
('sample', sample_hint or AnyDataObject),
]
)
return query_perform(
query_struct, connection,
query_params={
'cache_info': cache_info,
'key': key,
'sample': sample,
},
response_config=[
('success', Bool),
],
post_process_fun=__post_process_value_by_key('success')
)