I am using Win32 memcached from http://labs.northscale.com/memcached-packages/ And there is a DLL file within the package.
Now I am trying to write my Java pro开发者_StackOverflow中文版ject to use memcached. Somebody suggested Java -> JNI -> Custom DLL -> standard DLL call -> 3rd Party DLL in order to use the API.
What is the solution?
There are several Java Memcached clients, such as http://code.google.com/p/spymemcached/ and https://github.com/gwhalin/Memcached-Java-Client/wiki Using those is probably easier than re-inventing the wheel...
You run Memcached as a separate program, possibly as a service, and you connect to it through TCP/IP. That's how it works on other platforms too.
You don not load Memcached as a DLL.
精彩评论