Patrick Galbraith ([info]capttofu) wrote,
atomicity, less code
Yes, and also yes.

Also, this makes it atomic. You insert into db, have a trigger as I showed, memcached gets the data upon insert into mysql.

You can also have the read-through be in one shot. You do something like

'select col, memcached_set('namespace:key', col) from foo';

(my syntax might be off) The idea being you select get data and cache data at the same time!


(Read 30 comments)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:
 
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…