Preparing search index...
The search index is not available
@drift-labs/sdk
@drift-labs/sdk
TxEventCache
Class TxEventCache
Hierarchy
TxEventCache
Index
Constructors
constructor
Properties
cache
Map
head?
max
Tx
size
tail?
Methods
add
clear
detach
get
has
Constructors
constructor
new
Tx
Event
Cache
(
maxTx
?:
number
)
:
TxEventCache
Parameters
maxTx:
number
= 1024
Returns
TxEventCache
Properties
cache
Map
cache
Map
:
{
[key:
string
]
:
Node
;
}
= {}
Type declaration
[
key:
string
]:
Node
Optional
head
head
?:
Node
max
Tx
max
Tx
:
number
= 1024
size
size
:
number
= 0
Optional
tail
tail
?:
Node
Methods
add
add
(
key
:
string
, events
:
WrappedEvent
<
keyof
EventMap
>
[]
)
:
void
Parameters
key:
string
events:
WrappedEvent
<
keyof
EventMap
>
[]
Returns
void
clear
clear
(
)
:
void
Returns
void
detach
detach
(
node
:
Node
)
:
void
Parameters
node:
Node
Returns
void
get
get
(
key
:
string
)
:
WrappedEvent
<
keyof
EventMap
>
[]
Parameters
key:
string
Returns
WrappedEvent
<
keyof
EventMap
>
[]
has
has
(
key
:
string
)
:
boolean
Parameters
key:
string
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@drift-
labs/sdk
BN
pyth
Tx
Event
Cache
constructor
cache
Map
head?
max
Tx
size
tail?
add
clear
detach
get
has
Generated using
TypeDoc