Class CacheKey


  • public class CacheKey
    extends java.lang.Object
    This key is our "first layer". It is a key for the hash table that maps parameters that we require to be equal to SubCaches, which represent parameters that we allow to be different or "fuzzy". By separating these ideas out, we can be more efficient- map for required values, and then search for fuzzy matches.

    Right now, we only allow the time range to be fuzzy. Later we may allow the tags to be as well, so we can get a hit when we query for a sub-set of already cached tags.

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object