Issues

ZF-2066: Zend_Cache_Frontend_Class should not require cachedEntity in options

Issue Type: Improvement Created: 2007-10-15T02:16:10.000+0000 Last Updated: 2010-06-30T10:37:00.000+0000 Status: Closed Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Steven Brown (pooh) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: - ZF-9979

Attachments:

Description

Zend_Cache_Frontend_Class should not require cachedEntity in the options, instead you should be able to pass either a class name or object to a "call" method just like Zend_Cache_Frontend_Function. This allows use of the same cache object for methods of multiple classes or objects.

Comments

Posted by Thomas Weidner (thomas) on 2007-10-15T13:40:20.000+0000

Assigned to Fabien

Posted by Darien Hager (hagerd) on 2008-01-24T19:56:22.000+0000

While I can see how that may be useful...

But I think it poses a risk of conflict with the established use. Whatever name you give the 'call method' you describe would have to be one that no underlying object would ever conflict with. So it cannot be "call()", but would have to be something like "zend_cache_call()".

Instead, it may be worth having Zend_Cache_Frontend_Object as a new class of it's own which has the behavior you describe.

$result = $cache->call($object,'methodName',$argumentArray);

Posted by Fabien MARTY (fab) on 2008-07-28T12:29:24.000+0000

I agree, if someone wants to help... :-)

Posted by Steven Brown (pooh) on 2008-07-28T15:39:19.000+0000

I'd be interested in helping...what's the process?

Posted by Steven Brown (pooh) on 2008-07-28T22:09:33.000+0000

I think Darien's on the right track, though I'd recommend Zend_Cache_Frontend_Method

Posted by Fabien MARTY (fab) on 2009-07-17T11:03:31.000+0000

change Assignee because I'm inactive now

Posted by Marc Bennewitz (private) (mabe) on 2010-04-30T09:29:20.000+0000

for zend cache 2.0 i'm planning to add a new Callback cache which implements a (non overloaded) call method with the two arguments $callback & $arguments.

(The class & function cache leave similar as is - using magic methods)

Posted by Marc Bennewitz (private) (mabe) on 2010-06-30T10:37:00.000+0000

Now it's possible to use all types of callbacks within Zend_Cache_Frontend_Function

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts