Changes between Version 5 and Version 6 of MyIdeas


Ignore:
Timestamp:
2008-05-14T13:36:22+02:00 (7 years ago)
Author:
Psih
Comment:

Some style corrections

Legend:

Unmodified
Added
Removed
Modified
  • MyIdeas

    v5 v6  
    55 * Create more detailed manual for PHP API (like PHP.net manual with examples and function definitions). Can help with that. By Psih 
    66 * By Psih. Add functions for locking items and get status of item (locked/unlocked) even if doesn't exist. Example: If you have highly loaded box and you cache dies via expired TTL your applications regenerates the cache. There is a high probability that few parallel requests will do that simultaneously - locks will prevent such situations. I purpose to modify some functions in this way: 
    7   * xcache_get - add an extra param that will set LOCK on item if it doesn't exist. Data can't be getted when lock is in place - function should wait until lock is released or some timeout expires to clean forgotten locks. 
    8   * xcache_set - add an extra param that will release lock on data setting.  
    9   * xcache_isset - it makes sense to add param for LOCK setting if item doesn't exist like with xcache_get. This will enable for check if item exists and if not - lock it and create. 
     7  * xcache_get - add an extra param that will set LOCK on item if it doesn't exist. Data can't be getted when LOCK is in place - function should wait until LOCK is released or some timeout expires to clean forgotten locks. 
     8  * xcache_set - automatically release LOCK when called by process witch set it. Maybe it can be an extra param for function to avoid checking for locks on each call. 
     9  * xcache_isset - add an extra param for setting LOCK. This will enable checking item for existence and if not - place a lock and create it with xcache_set. 
    1010