22. Class

22.1. Zend\Cache\Storage\Adapter\Dba

22.1.1. Methods

22.1.1.1. __construct

__construct()

Constructor

Parameters:null|array|Traversable|DbaOptions
Throws ExceptionExceptionInterface:
 

22.1.1.2. __destruct

__destruct()

Destructor

Closes an open dba resource

Return type:void

22.1.1.3. setOptions

setOptions()

Set options.

Parameters:array|Traversable|DbaOptions
Return type:Apc
See :

22.1.1.4. getOptions

getOptions()

Get options.

Return type:DbaOptions
See :

22.1.1.5. getTotalSpace

getTotalSpace()

Get total space in bytes

Return type:int|float

22.1.1.6. getAvailableSpace

getAvailableSpace()

Get available space in bytes

Return type:int|float

22.1.1.7. flush

flush()

Flush the whole storage

Return type:bool

22.1.1.8. clearByNamespace

clearByNamespace()

Remove items by given namespace

Parameters:string
Return type:bool

22.1.1.9. clearByPrefix

clearByPrefix()

Remove items matching given prefix

Parameters:string
Return type:bool

22.1.1.10. getIterator

getIterator()

Get the storage iterator

Return type:ApcIterator

22.1.1.11. optimize

optimize()

Optimize the storage

Return type:bool
Return type:ExceptionRuntimeException

22.1.1.12. internalGetItem

internalGetItem()

Internal method to get an item.

Parameters:
  • string
  • bool
  • mixed
Return type:

mixed Data on success, null on failure

Throws :

ExceptionExceptionInterface

22.1.1.13. internalHasItem

internalHasItem()

Internal method to test if an item exists.

Parameters:string
Return type:bool
Throws :ExceptionExceptionInterface

22.1.1.14. internalSetItem

internalSetItem()

Internal method to store an item.

Parameters:
  • string
  • mixed
Return type:

bool

Throws :

ExceptionExceptionInterface

22.1.1.15. internalAddItem

internalAddItem()

Add an item.

Parameters:
  • string
  • mixed
Return type:

bool

Throws :

ExceptionExceptionInterface

22.1.1.16. internalRemoveItem

internalRemoveItem()

Internal method to remove an item.

Parameters:string
Return type:bool
Throws :ExceptionExceptionInterface

22.1.1.17. internalGetCapabilities

internalGetCapabilities()

Internal method to get capabilities of this adapter

Return type:Capabilities

22.1.1.18. _open

_open()

Open the database if not already done.

Return type:void
Throws :ExceptionLogicException
Throws :ExceptionRuntimeException

22.1.1.19. _close

_close()

Close database file if opened

Return type:void