Вопрос

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