1 Reply Latest reply on Mar 6, 2014 8:44 AM by rvansa

    Is there the way to do "getAll(key[] keys) "?

    bitec

      So, is there the way to fetch several values by several keys instead of calliing get(..) in a loop? This is critical for scenarios when plenty of small objects are fetched from cache

        • 1. Re: Is there the way to do "getAll(key[] keys) "?
          rvansa

          There's no API for that. You can issue multiple getAsync requests, and then wait for all the futures to be finished. However, as getAsync is implemented as delegating the actual get to limited thread pool, don't try to execute more than few tens of requests in parallel (then the async requests would be carried by the executing thread, making them sync in fact).