Preparing search index...
The search index is not available
@aoijs/aoi.db
@aoijs/aoi.db
KeyValueFileManager
Class KeyValueFileManager
Hierarchy
KeyValueFileManager
Index
Constructors
constructor
Properties
#array
#hash
Size
#max
Size
#rehashing
#table
Accessors
hash
Size
max
Hash
Array
Size
Methods
#get
Hash
Index
#hash
#rehash
add
all
clear
find
Many
find
One
get
get
FirstN
has
initialize
ping
remove
remove
Many
Constructors
constructor
new
Key
Value
File
Manager
(
maxSize
,
hashSize
?
,
table
)
:
KeyValueFileManager
Parameters
maxSize
:
number
hashSize
:
number
= 20
table
:
KeyValueTable
Returns
KeyValueFileManager
Properties
Private
#array
#array
:
default
[]
Private
#hash
Size
#hash
Size
:
number
Private
#max
Size
#max
Size
:
number
Private
#rehashing
#rehashing
:
boolean
= false
Private
#table
#table
:
KeyValueTable
Accessors
hash
Size
get
hashSize
(
)
:
number
Returns
number
max
Hash
Array
Size
get
maxHashArraySize
(
)
:
number
Returns
number
Methods
Private
#get
Hash
Index
#get
Hash
Index
(
hash
)
:
number
Parameters
hash
:
string
Returns
number
Private
#hash
#hash
(
key
)
:
string
Parameters
key
:
string
Returns
string
Private
#rehash
#rehash
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
add
add
(
data
)
:
Promise
<
unknown
>
Parameters
data
:
KeyValueData
Returns
Promise
<
unknown
>
all
all
(
query
,
limit
,
order
)
:
Promise
<
unknown
>
Parameters
query
:
(
(
d
)
=>
boolean
)
(
d
)
:
boolean
Parameters
d
:
KeyValueData
Returns
boolean
limit
:
number
order
:
"desc"
|
"firstN"
|
"asc"
Returns
Promise
<
unknown
>
clear
clear
(
)
:
undefined
|
Promise
<
unknown
>
Returns
undefined
|
Promise
<
unknown
>
find
Many
find
Many
(
query
)
:
Promise
<
unknown
>
Parameters
query
:
(
(
d
)
=>
boolean
)
(
d
)
:
boolean
Parameters
d
:
KeyValueData
Returns
boolean
Returns
Promise
<
unknown
>
find
One
find
One
(
query
)
:
Promise
<
undefined
|
KeyValueData
>
Parameters
query
:
(
(
d
)
=>
boolean
)
(
d
)
:
boolean
Parameters
d
:
KeyValueData
Returns
boolean
Returns
Promise
<
undefined
|
KeyValueData
>
get
get
(
key
)
:
Promise
<
unknown
>
Parameters
key
:
string
Returns
Promise
<
unknown
>
get
FirstN
get
FirstN
(
query
,
limit
)
:
Promise
<
unknown
>
Parameters
query
:
(
(
d
)
=>
boolean
)
(
d
)
:
boolean
Parameters
d
:
KeyValueData
Returns
boolean
limit
:
number
Returns
Promise
<
unknown
>
has
has
(
key
)
:
Promise
<
unknown
>
Parameters
key
:
string
Returns
Promise
<
unknown
>
initialize
initialize
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
ping
ping
(
)
:
Promise
<
unknown
>
Returns
Promise
<
unknown
>
remove
remove
(
data
)
:
undefined
|
Promise
<
unknown
>
Parameters
data
:
string
Returns
undefined
|
Promise
<
unknown
>
remove
Many
remove
Many
(
query
)
:
Promise
<
unknown
>
Parameters
query
:
(
(
d
)
=>
boolean
)
(
d
)
:
boolean
Parameters
d
:
KeyValueData
Returns
boolean
Returns
Promise
<
unknown
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#array
#hash
Size
#max
Size
#rehashing
#table
hash
Size
max
Hash
Array
Size
#get
Hash
Index
#hash
#rehash
add
all
clear
find
Many
find
One
get
get
FirstN
has
initialize
ping
remove
remove
Many
@aoijs/aoi.db
Cache
Type
Database
Events
Database
Method
Permissions
Receiver
Op
Codes
Reference
Type
Transmitter
Op
Codes
Key
Value
Key
Value
Cacher
Key
Value
Data
Key
Value
File
Manager
Key
Value
Table
Mem
Map
Receiver
Referencer
Transmitter
Wide
Columnar
Wide
Columnar
Column
Wide
Columnar
Data
Wide
Columnar
Table
Cacher
Options
Hash
ISocket
Key
Value
Cache
Config
Key
Value
Data
Config
Key
Value
Data
Interface
Key
Value
Encryption
Config
Key
Value
File
Config
Key
ValueJSONOption
Key
Value
Options
Key
Value
Table
Options
Log
Block
Mem
Map
Options
Receiver
Data
Format
Receiver
Options
Transmitter
Anaylze
Data
Format
Transmitter
Create
Options
Transmitter
Data
Format
Transmitter
Options
User
Config
Wide
Columnar
Cache
Config
Wide
Columnar
Column
Options
Wide
Columnar
Data
Config
Wide
Columnar
Data
Interface
Wide
Columnar
Encryption
Config
Wide
Columnar
File
Config
Wide
Columnar
Options
Wide
Columnar
Table
Options
Column
Type
Database
Options
Deep
Required
Key
Key
Value
Data
Value
Type
Key
Value
Type
List
Optional
Possible
Database
Types
ValidJSON
Value
Wide
Columnar
Data
Type
Reference
Constant
Space
JSONParser
check
If
Target
Present
In
Bit
Wise
Or
convert
V1
Key
Valuetov2
create
Hash
create
Hash
Raw
String
decode
Hash
decrypt
encrypt
parse
stringify
Generated using
TypeDoc