UNPKG
mtproton
Version:
latest (6.0.0)
6.0.0
5.9.0
Telegram API JS (MTProto) client library for browser and nodejs
mtproton
/
src
/
storage
/
temp
/
index.js
18 lines
(13 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class
TempLocalStorage
{
constructor
() {
this
.storage = new Map(); }
set
(key, value) {
return
this
.storage.
set
(key, value); }
get
(key) {
return
this
.storage.
get
(key); } }
const
tempLocalStorage = new TempLocalStorage(); module.exports = tempLocalStorage;