Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 2. Memcached. How do I get a list of keys?
#4

[eluser]Nick_MyShuitings[/eluser]
There you would be helped by convention that you yourself define. As long as you in your code follow your own convention you will be able to always know the name of the key.

For example, the trademark - Ford, would always be the key ford. and the products under ford, would always be ford_products.

Note that memcached keys are set with a timeout, so every time you attempt to get a key you check if it is set. If it is not set you then query the database and reset the keye. Similarly, after every WRITE SQL operation like insert update or delete, you would reset the key.

It sounds like you need to study more on what is memcached and how it works and the theory and logic behind it, a bit before you attempt to implement it in CI.


Messages In This Thread
CodeIgniter 2. Memcached. How do I get a list of keys? - by El Forum - 04-12-2011, 10:03 AM
CodeIgniter 2. Memcached. How do I get a list of keys? - by El Forum - 04-12-2011, 01:44 PM
CodeIgniter 2. Memcached. How do I get a list of keys? - by El Forum - 04-13-2011, 12:27 AM
CodeIgniter 2. Memcached. How do I get a list of keys? - by El Forum - 04-13-2011, 06:59 AM
CodeIgniter 2. Memcached. How do I get a list of keys? - by El Forum - 04-13-2011, 07:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB