from django.test import TestCase

# Create your tests here.
from django_redis import get_redis_connection

conn = get_redis_connection()


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


if __name__ == '__main__':
    test = CacheTest()
    test.test_set_cache()

c6cea8044c9ba53235a596c2c185d21d6fa7c997
<mask token>


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


<mask token>

<mask token>


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


if __name__ == '__main__':
    test = CacheTest()
    test.test_set_cache()

<mask token>
conn = get_redis_connection()


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


if __name__ == '__main__':
    test = CacheTest()
    test.test_set_cache()

from django.test import TestCase
from django_redis import get_redis_connection
conn = get_redis_connection()


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


if __name__ == '__main__':
    test = CacheTest()
    test.test_set_cache()

from django.test import TestCase

# Create your tests here.
from django_redis import get_redis_connection

conn = get_redis_connection()


class CacheTest(TestCase):

    def setUp(self):
        conn.set('1', '3', 300)

    def test_set_cache(self):
        print(conn.get('1'))


if __name__ == '__main__':
    test = CacheTest()
    test.test_set_cache()
