[fw-general] Re: zend_cache Not found

2014-02-13 Thread Parsifal
Any advise yet for memory_limit? I am getting errors. How the array setting
should be?
 در 2014 2 12 14:55، Nima Sadjadi nsadj...@gmail.com نوشت:

 Hi,
 I was not able to write one for memort_limit I always get error, would you
 kindly show me how the array for memory_limit should be?
 در 2014 2 7 20:42، jmleroux [via Zend Framework Community] 
 ml-node+s634137n4661643...@n4.nabble.com نوشت:

 Hum, no. :)

 I'm willing to help, but you have to do your homework. ;)


 Le 07/02/2014 15:17, Parsifal a écrit :

  Thanks a lot. Would you please write the same for all other available
  adapters too?
  I use ZF2.
در 2014 2 7 09:36، jmleroux [via Zend Framework Community] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4661643i=0
 نوشت:
 
  Something like this :
 
  $cache   = \Zend\Cache\StorageFactory::factory(array(
   'adapter' = array(
   'name' = 'filesystem',
   'options' = array(
   'cache_dir' = '/tmp/cache',
   'ttl' = 3600,
   ),
   ),
   'plugins' = array(
   // Don't throw exceptions on cache errors
   'exception_handler' = array(
   'throw_exceptions' = false
   ),
   'serializer' = array(
   'serializer' = 'Zend\Serializer\Adapter\PhpSerialize',
   'options' = array(),
   ),
   )
  ));
 
 
 
 
  --
If you reply to this email, your message will be added to the
 discussion
  below:
 
 
 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661640.html
To unsubscribe from zend_cache Not found, click here
  .
  NAML
 http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 
 
 
 
  --
  View this message in context:
 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661642.html
  Sent from the Zend Framework mailing list archive at Nabble.com.

 --
 JM Leroux

 https://github.com/jmleroux


 --
 List: [hidden email]http://user/SendEmail.jtp?type=nodenode=4661643i=1
 Info: http://framework.zend.com/archives
 Unsubscribe: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4661643i=2




 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661643.html
  To unsubscribe from zend_cache Not found, click 
 herehttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661626code=bnNhZGphZGlAZ21haWwuY29tfDQ2NjE2MjZ8LTEzOTk0MzM3ODU=
 .
 NAMLhttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml






--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661674.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: zend_cache Not found

2014-02-12 Thread Parsifal
Hi,
I was not able to write one for memort_limit I always get error, would you
kindly show me how the array for memory_limit should be?
در 2014 2 7 20:42، jmleroux [via Zend Framework Community] 
ml-node+s634137n4661643...@n4.nabble.com نوشت:

 Hum, no. :)

 I'm willing to help, but you have to do your homework. ;)


 Le 07/02/2014 15:17, Parsifal a écrit :

  Thanks a lot. Would you please write the same for all other available
  adapters too?
  I use ZF2.
در 2014 2 7 09:36، jmleroux [via Zend Framework Community] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4661643i=0
 نوشت:
 
  Something like this :
 
  $cache   = \Zend\Cache\StorageFactory::factory(array(
   'adapter' = array(
   'name' = 'filesystem',
   'options' = array(
   'cache_dir' = '/tmp/cache',
   'ttl' = 3600,
   ),
   ),
   'plugins' = array(
   // Don't throw exceptions on cache errors
   'exception_handler' = array(
   'throw_exceptions' = false
   ),
   'serializer' = array(
   'serializer' = 'Zend\Serializer\Adapter\PhpSerialize',
   'options' = array(),
   ),
   )
  ));
 
 
 
 
  --
If you reply to this email, your message will be added to the
 discussion
  below:
 
 
 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661640.html
To unsubscribe from zend_cache Not found, click here
  .
  NAML
 http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 
 
 
 
  --
  View this message in context:
 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661642.html
  Sent from the Zend Framework mailing list archive at Nabble.com.

 --
 JM Leroux

 https://github.com/jmleroux


 --
 List: [hidden email]http://user/SendEmail.jtp?type=nodenode=4661643i=1
 Info: http://framework.zend.com/archives
 Unsubscribe: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4661643i=2




 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661643.html
  To unsubscribe from zend_cache Not found, click 
 herehttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661626code=bnNhZGphZGlAZ21haWwuY29tfDQ2NjE2MjZ8LTEzOTk0MzM3ODU=
 .
 NAMLhttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661672.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: zend_cache Not found

2014-02-08 Thread Parsifal
Hi,

I want to use this cache thing with paginator, I am confused I should
set the cache before paginator or after paginator?
This is a correct way as below?

Zend\Paginator\Paginator::setCache($cache);
$paginator =  new Zend\Paginator\Paginator(new
Zend\Paginator\Adapter\ArrayAdapter($users));




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661648.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: zend_cache Not found

2014-02-07 Thread Parsifal
Thanks a lot. Would you please write the same for all other available
adapters too?
I use ZF2.
 در 2014 2 7 09:36، jmleroux [via Zend Framework Community] 
ml-node+s634137n4661640...@n4.nabble.com نوشت:

 Something like this :

 $cache   = \Zend\Cache\StorageFactory::factory(array(
 'adapter' = array(
 'name' = 'filesystem',
 'options' = array(
 'cache_dir' = '/tmp/cache',
 'ttl' = 3600,
 ),
 ),
 'plugins' = array(
 // Don't throw exceptions on cache errors
 'exception_handler' = array(
 'throw_exceptions' = false
 ),
 'serializer' = array(
 'serializer' = 'Zend\Serializer\Adapter\PhpSerialize',
 'options' = array(),
 ),
 )
 ));




 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661640.html
  To unsubscribe from zend_cache Not found, click 
 herehttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661626code=bnNhZGphZGlAZ21haWwuY29tfDQ2NjE2MjZ8LTEzOTk0MzM3ODU=
 .
 NAMLhttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661642.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Re: zend_cache Not found

2014-02-07 Thread JM Leroux

Hum, no. :)

I'm willing to help, but you have to do your homework. ;)


Le 07/02/2014 15:17, Parsifal a écrit :

Thanks a lot. Would you please write the same for all other available
adapters too?
I use ZF2.
  در 2014 2 7 09:36، jmleroux [via Zend Framework Community] 
ml-node+s634137n4661640...@n4.nabble.com نوشت:


Something like this :

$cache   = \Zend\Cache\StorageFactory::factory(array(
 'adapter' = array(
 'name' = 'filesystem',
 'options' = array(
 'cache_dir' = '/tmp/cache',
 'ttl' = 3600,
 ),
 ),
 'plugins' = array(
 // Don't throw exceptions on cache errors
 'exception_handler' = array(
 'throw_exceptions' = false
 ),
 'serializer' = array(
 'serializer' = 'Zend\Serializer\Adapter\PhpSerialize',
 'options' = array(),
 ),
 )
));




--
  If you reply to this email, your message will be added to the discussion
below:

http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661640.html
  To unsubscribe from zend_cache Not found, click 
herehttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661626code=bnNhZGphZGlAZ21haWwuY29tfDQ2NjE2MjZ8LTEzOTk0MzM3ODU=
.
NAMLhttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661642.html
Sent from the Zend Framework mailing list archive at Nabble.com.


--
JM Leroux

https://github.com/jmleroux


--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: zend_cache Not found

2014-02-07 Thread Parsifal
Actually I was following the pdf documentation but it seems this is
not an updated documentaion as I always get errors!




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661644.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Re: zend_cache Not found

2014-02-07 Thread JM Leroux

I always use the inline documentation :

http://framework.zend.com/manual/2.2/en/modules/zend.cache.storage.adapter.html


Le 07/02/2014 22:11, Parsifal a écrit :

Actually I was following the pdf documentation but it seems this is
not an updated documentaion as I always get errors!




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661644.html
Sent from the Zend Framework mailing list archive at Nabble.com.


--
JM Leroux

https://github.com/jmleroux



[fw-general] Re: zend_cache Not found

2014-02-06 Thread jmleroux
Hello,

In ZF1, there's no Factory class.

The factory is a static method of the abstract class Zend_Cache.

See here :
https://github.com/zendframework/zf1/blob/master/library/Zend/Cache.php#L91





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661629.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: zend_cache Not found

2014-02-06 Thread Parsifal
In zend_cache I tested both serializer plugin and exceptionhandler
plugin and they issued exception error:
'The option plugins does not have a matching setPlugins setter
method which must be defined'
Isn't it actually a bug in ZF2? let me know. for sure here is am giving my
code:

$cache = Zend\Cache\StorageFactory::adapterFactory('filesystem',
array('cache_dir'
= 'c', 'ttl' = 3600
,'plugins' = array( 'serializer' ),
)
);

and this one:

$cache = Zend\Cache\StorageFactory::adapterFactory('filesystem',
array('cache_dir' = 'c', 'ttl' = 3600
 ,'plugins' = array('exceptionhandler' = array('throw_exceptions' =
false))
));




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661630.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: zend_cache Not found

2014-02-06 Thread jmleroux
What are you looking for : ZF1 Zend_Cache or ZF2 Zend\Cache ? 







--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661633.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: zend_cache Not found

2014-02-06 Thread Parsifal
I said plugins for zend cache of zf2 doesn't work. Isn't it a bug?
در 2014 2 6 14:50، jmleroux [via Zend Framework Community] 
ml-node+s634137n4661633...@n4.nabble.com نوشت:

 What are you looking for : ZF1 Zend_Cache or ZF2 Zend\Cache ?





 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661633.html
  To unsubscribe from zend_cache Not found, click 
 herehttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661626code=bnNhZGphZGlAZ21haWwuY29tfDQ2NjE2MjZ8LTEzOTk0MzM3ODU=
 .
 NAMLhttp://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661636.html
Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Re: zend_cache Not found

2014-02-06 Thread jmleroux
I think you made a mistake in the config and place 'plugins' inside 'options'
array.

Here is a corret configuration :





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661637.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: zend_cache Not found

2014-02-06 Thread Parsifal
and it I want to set cache_dir and ttl, how should the command be?
please help.


On Thu, Feb 6, 2014 at 10:06 PM, jmleroux [via Zend Framework
Community] ml-node+s634137n4661637...@n4.nabble.com wrote:
 I think you made a mistake in the config and place 'plugins' inside
 'options' array.

 Here is a corret configuration :

 $cache   = \Zend\Cache\StorageFactory::factory(array(
 'adapter' = array(
 'name' = 'filesystem'
 ),
 'plugins' = array(
 // Don't throw exceptions on cache errors
 'exception_handler' = array(
 'throw_exceptions' = false
 ),
 )
 ));



 
 If you reply to this email, your message will be added to the discussion
 below:
 http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661637.html
 To unsubscribe from zend_cache Not found, click here.
 NAML




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/zend-cache-Not-found-tp4661626p4661638.html
Sent from the Zend Framework mailing list archive at Nabble.com.