kong.ctx package¶
Submodules¶
Module contents¶
- class kong.ctx.ctx[source]¶
Bases:
object
Bases:
object
get a key-value pair from Kong’s shared memory
- Parameters:
k (str) – key for the ctx data
- Returns:
the per-request context data in ngx.ctx
- Return type:
Any
set a key-value pair in Kong’s shared memory
- Parameters:
k (str) – key for the ctx data
v (str) – value for the ctx data