سؤال

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