Question

I currently writing a C program to cache data from Mysql to gwan cache (for a faster response from server to client), but I dont know how to let the program automatically initiate when the gwan start...

What could I do? Thanks!!

Was it helpful?

Solution 2

cache data from Mysql to gwan cache

The G-WAN cache is rather aimed at storing ready-to-serve pre-built HTTP replies.

If you want to cache raw mySQL responses (then picked by servlets to built HTTP replies) then you should consider using the G-WAN KV store.

See the kv.c source code example.

OTHER TIPS

Put your code into init() function inside your handler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top