@Override
    public boolean equals(Object o)
    {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CacheKey cacheKey = (CacheKey) o;
        return cacheName.equals(cacheKey.cacheName) && key.equals(cacheKey.key);
    }
A key of a cache, namespaced by the cache that it belongs to.
xmppserver/src/main/java/org/jivesoftware/util/cache/lock/CacheKey.java