• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • memcached
    • None

      Memcached server has limitation for key length (250 characters). We currently do MD5 hash as a workaround. This could be an issue:

      1. performance (MD5)
      2. multiple keys with same hash

      Possible solution:

      1. create hash only for long keys
      2. Would could retrieve item from cache based on hash. Then check real cache key which would be store as part of cached value.
      • A] save an uncacheable item for all other keys with the same hash (acceptable only if such long keys would be an exception + log warning)
      • B] save set of all items with the same hash into cache (save with the lowest TTL from all of them, could be a problem with size limitations - default 1MB)

            rkovarik Roman Kovařík
            rkovarik Roman Kovařík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: