IT Community - Software Programming, Web Development and Technical Support

How to delete memcache?

This is a discussion on How to delete memcache? within the PHP Programming forums, part of the Web Development category; I want to implement memcache in our site and but i want to know how to delete memcache? --kamal...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2007, 08:16 AM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default How to delete memcache?

I want to implement memcache in our site and but i want to know how to delete memcache?

--kamal
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-27-2007, 02:22 AM
accer accer is offline
D-Web Sr.Programmer
 
Join Date: Sep 2007
Posts: 174
accer is on a distinguished road
Default Re: How to delete memcache?

You sound like me! I don't want to start something until I know how to stop it. I wish I could help but this is an area alien to me.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-28-2007, 11:16 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,165
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to delete memcache?

hi Kamal,
// removes the key from the MemCache
// $time is the amount of time in seconds (or Unix time) until which
// the client wishes the server to refuse "add" and "replace" commands
// with this key. For this amount of item, the item is put into a
// delete queue, which means that it won't possible to retrieve it by
// the "get" command, but "add" and "replace" command with this key
// will also fail (the "set" command will succeed, however). After the
// time passes, the item is finally deleted from server memory.
// The parameter $time is optional, and, if absent, defaults to 0
// (which means that the item will be deleted immediately and further
// storage commands with this key will succeed).
// returns TRUE on success else returns FALSE
// Possible errors set are:
// MC_ERR_NOT_ACTIVE
// MC_ERR_GET_SOCK
// MC_ERR_SOCKET_WRITE
// MC_ERR_SOCKET_READ
// MC_ERR_DELETE
MemCachedClient::delete($key, $time = 0);

It can help you to delete memcache value using Key
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 10-07-2007, 10:57 PM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: How to delete memcache?

how to search a key in memcache?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 10-13-2007, 12:15 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,165
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to delete memcache?

hi,
This is nice question.
generally we are using to search in the memcache vales through its key.

For example.

test_Key = testing

here test_key is memcache key
testing is the memcache values for the Key test_Key

to search for testing
we can do like this
if($memClient -> get('test_Key'))
echo "Search values Found";

i hope it is clear for you.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 10-17-2007, 09:23 PM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: How to delete memcache?

hi,

memcache search
-----------------

1. first time am search black -> result cache to memcache.

2. second time am search shirt -> result cache to memcache. and again

3.search black shirt -> result throw to memcahe or query?

Last edited by senraj : 10-19-2007 at 06:39 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 10-17-2007, 10:53 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,165
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to delete memcache?

hi senraj,
For the search of "black shirt" means memcache considered as new search key. So definitely results come from Query.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 10-18-2007, 01:57 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: How to delete memcache?

ok . Thanks for your reply Mr.jeyaseelan ..

1.already cache to shirt search key in memcache.

2.am insert in new product of shirt ok.

3.again search to shirt -> result throw in memcache or query.

Last edited by senraj : 10-19-2007 at 06:39 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 10-25-2007, 08:15 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,165
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to delete memcache?

hi,
i think it is not taken from memcache, because once an item added to that tags , the memcache is cleared up.

Got my point?
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 10-25-2007, 08:41 AM
senraj senraj is offline
D-Web Master
 
Join Date: Jul 2007
Posts: 418
senraj is on a distinguished road
Post Re: How to delete memcache?

Thanks for your reply Mr.jeyaseelan ..

how to delete old cache -> shirt ?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why we need Memcache? senraj PHP Programming 70 07-14-2008 12:23 AM
memcache commands and behavior prasath Database Support 4 09-27-2007 12:04 AM
Phpaccelerator & Memcache sivaramakrishnan PHP Programming 0 08-31-2007 07:59 AM
Memcache with Mysql write2ashokkumar Database Support 0 08-02-2007 02:41 AM
memcache in PHP DuraiBabu PHP Programming 6 07-18-2007 12:43 AM


All times are GMT -7. The time now is 02:53 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0