]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
implement basic infrastructure for scoped cache
authorMarek Vavruša <mvavrusa@cloudflare.com>
Tue, 10 Apr 2018 06:11:16 +0000 (23:11 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
commit8af54dfb349170630dec1e8c537c5582ff2867b0
tree8c449f00750c14d791fffa8d81af4799234649e5
parent8314318d92891dc2f2322dff50784a24146ebe2c
implement basic infrastructure for scoped cache

This commit adds support for scoped cache, e.g. keys can be tagged
with a scope, so that the same key can exist in multiple scope and
returns the value based on the scope set.

This is practically requires for scoping by subnet in ECS, but
it doesn't implement ECS completely. This is just a framework
to make something like ECS possible in a module.

The scope search is currently non-exhaustive, it either returns
a value bound to given scope or look into global scope, nothing
in between.
daemon/lua/kres-gen.lua
daemon/lua/kres-gen.sh
lib/cache/api.c
lib/cache/api.h
lib/cache/entry_pkt.c
lib/cache/impl.h
lib/cache/peek.c
lib/resolve.c
lib/resolve.h
tests/test_cache.c