As I am working in an app which needs keys to be stored in Redis and index data in Solr, due to redis eviction policy, sometimes keys gets evicted, but index in solar remains same, which result in confusing local behavior for me.
To clear local redis copy, I do it from redis-cli:
$ redis-cli
127.0.0.1:6379> FLUSHDB
OK
127.0.0.1:6379> FLUSHALL
OK
127.0.0.1:6379> exit
To remove Solr indexes, I use curl:
$ curl http://localhost:8982/solr/update?commit=true -d '**:** '