Is there a memcached Perl client that runs on Windows XP?

I am trying to find an alternative to the Cache :: Memcached Perl Module that works with Windows XP. Or, to somehow get Cache :: Memcached running on Windows XP.

A bit of background: the production environment (web server) is Solaris 10, in which I already installed memcached and Cache :: Memcached, and everything works fine. However, the development PC is Windows XP, and Cache :: Memcached will not be installed correctly and will definitely not work. Cm:

cpantesters.org cache report :: Memcached

the same error i get

Perl version: this is perl, v5.10.1 for MSWin32-x86-multi-thread

Note. Changing the development environment for Unix / Linux at this stage is not an option. Consider other Perl-based caching options suitable for your web environment.

+4
source share
2 answers

Here is a solution that may take a little extra work, but does not fit.

Create your own script daemon as the host for your memory cache, and then use Win32 :: Pipe to turn it into a pipe server. Using NamedPipes, your client scripts can then connect to it and execute transactions (e.g. store / retrieve data / memory).

If you want a fantasy, you can find Win32 extensions to create a Win32 service for your daemon, so it loads automatically when it boots.

You can download the current version of Win32 :: Pipe and see examples @ http://www.roth.net/perl/pipe/ .

Note: The Win32 :: Pipe module that ships with the ActiveState Perl distribution does not work.

+1
source

If you cache lines / scalar types rather than serializing / deserializing objects, you can leave the memcached client directly from sockets in the development window. The memcached protocol is very simple, and if you are mainly trying to check the caching behavior, you will not need a permanent connection to the memcached daemon and may leave with "send a message to the socket ... get one answer" as the operating model.

+1
source

Source: https://habr.com/ru/post/1300248/


All Articles