invalidate entry in memcache using php

26 views
Skip to first unread message

p23

unread,
Feb 5, 2010, 5:55:16 AM2/5/10
to memcached
Hi, I'm very beginner to memcached and php

How do i invalidate items in memcache after the database has been
written?
I put these query to mysql to read:

“SELECT * FROM employees"
so will retrieve it from database and cache it using a key.
Let say it will gives result of 10 records.

After a while i insert a new record with id=x
So, how do i invalidate this query that was cached recently?
Thus, if a user invoke this query again, it will return new result
with 11 records.

Henrik Schröder

unread,
Feb 5, 2010, 7:41:19 AM2/5/10
to memc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages