• Marek Vavrusa's avatar
    lib: cache api v2, removed dep on libknot db.h · e68c3a0a
    Marek Vavrusa authored
    this change introduces new API for cache backends,
    that is a subset of knot_db_api_t from libknot
    with several cache-specific operations
    major changes are:
    * merged 'cachectl' module into 'cache' as it is
      99% default-on and it simplifies things
    * not transaction oriented, transactions may be
      reused and cached for higher performance
    * scatter/gather API, this is important for
      latency and performance of non-local backends
      like Redis
    * faster and reliable cache clearing
    * cache-specific operations (prefix scan, ...) in
      the API not hacked in
    * simpler code for both backends and caller
engine.h 2.44 KB