Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions plugin-helper-overview/api-plugin-helper-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@ This method executes storage with the given parameters and routine.
* `usage`: unique string value \(default: `''`\)
* `type`: storage plugin type \(default: `nil`\)
* `conf`: storage plugin configuration \(default: `nil`\)
* `default_conf`: storage plugin default configuration \(default: `nil`\)
* `default_type`: storage plugin type used when neither `type` nor `conf` is given \(default: `nil`\)

### Storage Plugin Helper Instance Types

| Instance Type | Attributes |
| :--- | :--- |

The helper does not always hand the storage plugin instance itself to the owner plugin. It may wrap the instance, depending on the `persistent` parameter and on what the plugin reports about itself:

Raw \| `persistent && persistent_always? || otherwise` \| Persistent Wrapper \| `persistent` \| Synchronized Wrapper \| `!synchronized?` \|
| Instance Type | Condition |
| :--- | :--- |
| Raw | `persistent && persistent_always?`, or `!persistent && synchronized?` |
| Persistent Wrapper | `persistent && !persistent_always?` |
| Synchronized Wrapper | `!persistent && !synchronized?` |

#### Raw

Expand Down