Completed
Pull Request — master (#138)
by
unknown
20:13
created

SessionStorage.set()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1
Metric Value
cc 1
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
1
# -*- coding: utf-8 -*-
2 10
from __future__ import absolute_import, unicode_literals
3
4
5 10
class SessionStorage(object):
6
7 10
    def get(self, key, default=None):
8
        raise NotImplementedError()
9
10 10
    def set(self, key, value, ttl=None):
11
        raise NotImplementedError()
12
13 10
    def delete(self, key):
14
        raise NotImplementedError()
15
16 10
    def __getitem__(self, key):
17
        self.get(key)
18
19 10
    def __setitem__(self, key, value):
20
        self.set(key, value)
21
22 10
    def __delitem__(self, key):
23
        self.delete(key)
24