Are there any ways to check whether a key exists with RedisTemplate?

Are there any ways to check whether a key exists with RedisTemplate?
or in other words, are there any equivalent of Redis exists command in RedisTemplate API?

in redis is command EXISTS

Returns if key exists.

But you you want get keys by some part you can use KEYS

you can use regular by search key

MSET one 1 two 2 three 3 four 4
KEYS *o*
-> 1) "two"
-> 2) "four"
-> 3) "one"