mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
compatible / memcached, and has more features(as follows): * persistent storage (you can use flare as persistent memcached) * pluggable storage (currently only Tokyo Cabinet is available, though:) * data replication (synchronous or asynchronous) * data partitioning (automatically partitioned according to # of master servers (clients do not have to care about it)) * dynamic reconstruction, and partitioning (you can dynamically (I mean, without any service interruption) add slave servers and partition master servers) * node monitoring and failover (if any server is down, the server is automatically isolated from active servers and another slave server is promoted to master server) * request proxy (you can always get same result regardless of servers you connect to. so you can think flare servers as one big key-value storage) * over 256 bytes keys, and over 1M bytes values are available WWW: http://labs.gree.jp/Top/OpenSource/Flare-en.html
33 lines
590 B
C++
33 lines
590 B
C++
--- src/lib/server.h.orig 2009-10-09 19:08:47.000000000 +0900
|
|
+++ src/lib/server.h 2010-05-30 04:29:46.123851884 +0900
|
|
@@ -19,6 +19,10 @@
|
|
#include <sys/epoll.h>
|
|
#endif
|
|
|
|
+#ifdef HAVE_KQUEUE
|
|
+#include <sys/event.h>
|
|
+#endif
|
|
+
|
|
#include "connection.h"
|
|
|
|
namespace gree {
|
|
@@ -40,6 +44,9 @@
|
|
#ifdef HAVE_EPOLL
|
|
int _epoll_socket;
|
|
#endif
|
|
+#ifdef HAVE_KQUEUE
|
|
+ int _kqueue_socket;
|
|
+#endif
|
|
int _back_log;
|
|
|
|
public:
|
|
@@ -59,6 +66,9 @@
|
|
#ifdef HAVE_EPOLL
|
|
int _add_epoll_socket(int sock);
|
|
#endif
|
|
+#ifdef HAVE_KQUEUE
|
|
+ int _add_kqueue_socket(int sock);
|
|
+#endif
|
|
};
|
|
|
|
} // namespace flare
|