Golang plugin use redis data cache

Hi,
I wonder if a Go plugin could access Redis via Tyk?
I see it’s mentioned in the docs, however it’s unclear if and how it work. I’d prefer to use Tyk Redis connections (tyk/storage?).
I wonder if anyone made it work, is there an example (I have not found) to get or store data.
Eg. I’d like to store/check on certain fields or make custom counters. Thanks.

Hi @szalabala,

This function in our example go plugin accesses Redis (see lines 62, 118 and 131).
You can check here for more operations available.

See an example of a Tyk Golang plugin with a simple hit-counter here.

Hope this helps.