Search
Preparing search index...
The search index is not available
@atomist/sdm
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"core/preferences/AbstractPreferenceStore"
AbstractPreferenceStore
Class AbstractPreferenceStore
Abstract PreferenceStore implementation to handle ttl and key scoping
Hierarchy
AbstractPreferenceStore
TeamConfigurationPreferenceStore
FilePreferenceStore
InMemoryPreferenceStore
Implements
PreferenceStore
Index
Constructors
constructor
Properties
ctx
Methods
delete
do
Delete
do
Get
do
List
do
Put
get
list
put
scope
scope
Key
Constructors
Protected
constructor
new
Abstract
Preference
Store
(
ctx
:
HandlerContext
)
:
AbstractPreferenceStore
Parameters
ctx:
HandlerContext
Returns
AbstractPreferenceStore
Properties
Private
Readonly
ctx
ctx
:
HandlerContext
Methods
delete
delete
(
key
:
string
, options
?:
{
scope
?:
PreferenceScope
|
string
}
)
:
Promise
<
void
>
Parameters
key:
string
Default value
options:
{
scope
?:
PreferenceScope
|
string
}
= {}
Optional
scope
?:
PreferenceScope
|
string
Returns
Promise
<
void
>
Protected
Abstract
do
Delete
do
Delete
(
key
:
string
, namespace
:
string
)
:
Promise
<
void
>
Parameters
key:
string
namespace:
string
Returns
Promise
<
void
>
Protected
Abstract
do
Get
do
Get
(
key
:
string
, namespace
:
string
)
:
Promise
<
Preference
|
undefined
>
Parameters
key:
string
namespace:
string
Returns
Promise
<
Preference
|
undefined
>
Protected
Abstract
do
List
do
List
(
namespace
:
string
)
:
Promise
<
Preference
[]
>
Parameters
namespace:
string
Returns
Promise
<
Preference
[]
>
Protected
Abstract
do
Put
do
Put
(
pref
:
Preference
)
:
Promise
<
void
>
Parameters
pref:
Preference
Returns
Promise
<
void
>
get
get<V>
(
key
:
string
, options
?:
{
defaultValue
?:
V
;
scope
?:
PreferenceScope
|
string
}
)
:
Promise
<
V
|
undefined
>
Type parameters
V
Parameters
key:
string
Default value
options:
{
defaultValue
?:
V
;
scope
?:
PreferenceScope
|
string
}
= {}
Optional
default
Value
?:
V
Optional
scope
?:
PreferenceScope
|
string
Returns
Promise
<
V
|
undefined
>
list
list<V>
(
scope
:
PreferenceScope
|
string
)
:
Promise
<
Array
<
{
key
:
string
;
value
:
V
}
>
>
Type parameters
V
Parameters
scope:
PreferenceScope
|
string
Returns
Promise
<
Array
<
{
key
:
string
;
value
:
V
}
>
>
put
put<V>
(
key
:
string
, value
:
V
, options
?:
{
scope
?:
PreferenceScope
|
string
;
ttl
?:
number
}
)
:
Promise
<
V
>
Type parameters
V
Parameters
key:
string
value:
V
Default value
options:
{
scope
?:
PreferenceScope
|
string
;
ttl
?:
number
}
= {}
Optional
scope
?:
PreferenceScope
|
string
Optional
ttl
?:
number
Returns
Promise
<
V
>
Protected
scope
scope
(
scope
:
PreferenceScope
|
string
)
:
string
Parameters
scope:
PreferenceScope
|
string
Returns
string
Protected
scope
Key
scope
Key
(
key
:
string
, scope
?:
string
)
:
string
Parameters
key:
string
Optional
scope:
string
Returns
string
Globals
"core/preferences/
Abstract
Preference
Store"
Abstract
Preference
Store
constructor
ctx
delete
do
Delete
do
Get
do
List
do
Put
get
list
put
scope
scope
Key
Preference
Generated using
TypeDoc
Abstract PreferenceStore implementation to handle ttl and key scoping