Skip to content

An (incomplete) implementation of the memcached text protocol in Perl with persistence using BerkeleyDB.

Notifications You must be signed in to change notification settings

a-yiorgos/memcached.pl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

I was working on some stuff with MIMEDefang, Cache::Memcached and memcached at $work and stumbled upon just that. I wanted to check what exactly was going on while developing. About two hours after reading the informal text protocol specification for memcached, I had a crude working implementation of set and get in Perl and keys stored in a BerkeleyDB hash so that they could be inspected by external tools like makemap and postmap.

I’ve cut a lot of corners in this implementation, like:

  • the delete queues are not implemented (yet)
  • no check is done whether the inserted value is of the declared length in bytes
  • an inserted value cannot contain a \n
  • It is not demonizing yet

The code contains a lot of antipatterns.

http://blog.postmaster.gr/2012/03/20/memcached-pl-an-incomplete-implementation-in-perl-with-persistence/

About

An (incomplete) implementation of the memcached text protocol in Perl with persistence using BerkeleyDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published