Afternoon's Toy, memcache as an engine

« previous entry | next entry »
Aug. 26th, 2006 | 03:50 pm
location: Alohahaus, Seattle

Got up and went walking this morning. This is probably going to be one of the last few good weekends here in Seattle, and I wanted to make sure that I got in some walking each day.

Came home to discover that Christine had been stung by a Yellow Jacket. Despite the full can of Yellow Jacket killer I sprayed into the nest last night, they seem to be quite alive. I am tempted to run to the store and get some of the instant foam I use for sealing insulation leaks. I wonder how well they could get out of their nest if it was filled full of instant insulation :)

So this afternoon has turned into "fetch her some ice", so I decided to code up a small project I've been meaning to write for a few years:

mysql> INSTALL PLUGIN memcache SONAME 'libmemcache_engine.so';
Query OK, 0 rows affected, 0 warnings (0.06 sec)

mysql> create table foo3 (k varchar(128), val varchar(300)) ENGINE=memcache CONNECTION='localhost:6666';
Query OK, 0 rows affected (0.03 sec)

mysql> insert into foo3 VALUES ("frog", "Arf!");
Query OK, 1 row affected (0.00 sec)

And from the command line you can see:
[brian@zim memcache_client]$ ./client frog
The VAL is Arf!

That is all of an hours worth of work. Made two loaves of bread while I was at it :)

And for tonight? Hot tubbing out at a friend's house up in Snohomish County.

The code is available via my repositories, I'll wrap it up as a 0.1 release tomorrow if I get a chance. It needs to be fixed for key reads. I can currently have it operate in two modes:

1) Store rows.
2) Store just a single blob.

The nice thing about the "store a single blob" is that then you can pull the row from the client. Right now if I use the row format for "row" then only another MySQL server can read the rows. I could probably come up with some sort of "meta format" which was readable by any client, but I've not thought a lot on that at this point. Multiple MySQL servers can all read from the same cache.

It makes for a good afternoon's toy :)

Link | Leave a comment | Add to Memories | Tell a Friend

Comments {5}

Traum

(no subject)

from: [info]ein_traum
date: Aug. 26th, 2006 11:04 pm (UTC)
Link

hey, don't forget the "fetch her some painkillers" and "fetch her some water" and "help carry her to the bathroom" and "fetch her a blanket"
not my idea of a way to spend a beautiful saturday, but I very much appreciated your & our other housemate's help :)

Reply | Thread

tealynx

(no subject)

from: [info]tealynx
date: Aug. 27th, 2006 01:51 am (UTC)
Link

The yellow jackets around our house have been terrible this week too. Worse and worse everyday, and we've had to kill 3 today alone. I don't know what it's all about, but it can't be saying good things about the weather to come that the insects have all becomes "bugs gone wild".

*hugs* to your lovely lady and let her know we hope she feels better soon.

Reply | Thread

BrianFey

(no subject)

from: [info]brianfey
date: Aug. 27th, 2006 07:31 am (UTC)
Link

In my own experience with getting rid of bees nesting in my roof:
I found the best thing is to poison them over and over again until I win. Doesn't sound very nice to do... but better than folkks getting stung. Bees make poor housemates.

Reply | Thread

Brian "Krow" Aker

(no subject)

from: [info]krow
date: Aug. 27th, 2006 08:47 am (UTC)
Link

We are on night two of Brian going out with a can of poison and spraying down the nest. Last night I filled the entire next with a can of spray... tonight I used up maybe a third of a can. This will be a daily ritual until they are all dead :)

Reply | Parent | Thread

Jonathan M.

(no subject)

from: [info]geothermal
date: Aug. 27th, 2006 08:03 am (UTC)
Link

I can't recall, but I think someone put meat tenderizer on my wasp or yellow jacket stings right away. Too late now to try it.

And I think you can't just spray the nest, as half the hive is out somewhere else. Spray it at night or smash the nest and run and it takes a long time for them to rebuild it. Also make nests out of paper that look the nest you just destroyed. Wasps and jackets are territorial and will not build nests near other nests (even if they are unoccupied). This worked at my campout in canada recently. But I don't know if it was for wasps only or all nesting stingers.

Jonathan

Reply | Thread