Redis has "commands" that mutate the various data types it can store. Why? Redis is primarily a cache
Redis is a Key-Value (KV) store, and KV stores generally are well suited for cache however provide additional functionality.

KV stores can provide synchronisation between a variety of stateless front ends which is what this commands provide.