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!!

有帮助吗?

解决方案 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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top