How to use "like" operator in aerospike

I am trying to build cache invalidation.

Aerospike currently does not have a “like” operator; however, the same operation can be achieved with the cmp_regex” expression.

Thanks…can it work on keys as well?

Yes, you would use it with the key_str() expression.

If used in a filter, the following will return all records with keys containing the string “search_string”:

cmp_regex(".*search_string.*", 0, key_str())
© 2021 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.