public boolean isValid(RedisKey key){
  RedisKey check=getKey(key);
  return check.getVersion() == key.getVersion() && check.getUniqueID() == key.getUniqueID();
}

public boolean isValid ( RedisKey key ) { RedisKey check = getKey ( key ) ; return check . getVersion ( ) == key . getVersion ( ) && check . getUniqueID ( ) == key . getUniqueID ( ) ; }
check if the key is still valid
