<reponame>trevor-wu/e-mission-server<gh_stars>10-100
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
from builtins import object
import logging

class UserCacheHandler(object):
    @staticmethod
    def getUserCacheHandler(uuid):
        """
            Returns the current usercache handler configured in the config file,
            or the builtin cache if nothing is configured
        """
        # We put the import statement in here to avoid circular dependencies
        # It is also not needed anywhere else since this is a completely static
        # function otherwise
        import emission.net.usercache.builtin_usercache_handler as biuc
        return biuc.BuiltinUserCacheHandler(uuid)

    def __init__(self, user_id):
        self.user_id = user_id

    def moveToLongTerm(self):
        """
        Moves all messages that have arrived for the current user into long-term
        storage, after converting into a platform-independent format.
        """
        pass

    def storeViewsToCache(self):
        """
        Moves all messages that have arrived for the current user into long-term
        storage, after converting into a platform-independent format.
        """
        pass

from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
from builtins import object
import logging

class UserCacheHandler(object):
    @staticmethod
    def getUserCacheHandler(uuid):
        """
            Returns the current usercache handler configured in the config file,
            or the builtin cache if nothing is configured
        """
        # We put the import statement in here to avoid circular dependencies
        # It is also not needed anywhere else since this is a completely static
        # function otherwise
        import emission.net.usercache.builtin_usercache_handler as biuc
        return biuc.BuiltinUserCacheHandler(uuid)

    def __init__(self, user_id):
        self.user_id = user_id

    def moveToLongTerm(self):
        """
        Moves all messages that have arrived for the current user into long-term
        storage, after converting into a platform-independent format.
        """
        pass

    def storeViewsToCache(self):
        """
        Moves all messages that have arrived for the current user into long-term
        storage, after converting into a platform-independent format.
        """
        pass
Returns the current usercache handler configured in the config file,             or the builtin cache if nothing is configured # We put the import statement in here to avoid circular dependencies # It is also not needed anywhere else since this is a completely static # function otherwise Moves all messages that have arrived for the current user into long-term         storage, after converting into a platform-independent format. Moves all messages that have arrived for the current user into long-term         storage, after converting into a platform-independent format.