9. ZendSerializer
Adapters
serialize() / unserialize() (default)
igbinary_serialize() / igbinary_unserialize()
JSON
Action Message Format AMF0 / AMF3
XML using WDDX
Python's pickle module
Native PHP code
10. ZendCache
ZF1
Inflexible frontend / backend structure
Only permit strings
Requires serialization on frontend level
Different frontends are not usable together
Tons of uncontrolled options
Missing procedures for optimations
11. ZendCache
ZF2
Storage Adapters
Wrappers for real storage resources
Storage Plugins
Objects to add missing functionality or to influence
behavior of a storage adapter
Cache Patterns
Predifined patterns to solve known performance
bottlenecks
12. ZendCache
Storage Adapter
get / has / set / add / replace / touch / meta /
counting
Multiple interface
âCheck And Setâ feature
Find / Clear
Support for namespaces
Method for optimizing
Capabilities
Capacity
13. ZendCache
Storage Capabilities
Describes how a storage adapter works
Static TTL
max. TTL / max. key length
Use request time
Describes which features it supports
Supported datatypes / metadata
Expired read
Iterable
tagging
15. ZendCache
Cache Patterns
Predifined patterns to solve known performance
bottlenecks
Should be used only in the specific situations they
are designed to address
16. ZendCache
Available Cache Patterns:
Output Cache
Caching a part the the output
Capture Cache
Buffer a complete page and write it as regular file for
further requests
Callback / Object / Class Cache
Caching function / method calls
17. ZendCache
What next
Add missing adapters
Xcache / SQLite / DBA / MongoDB âŠ
Add missing plugins
MasterFile
Plugins to transform cache keys & values
Add missing patterns
PageCache
18. ZendStdlibErrorHandler
error suppression operator issues
Error will be triggered anymore
Not save to catch error message with
error_get_last()
Not possible to catch more than one error
Doesn't play well together with PHPUnit
Possibly disabled