Пример #1
0
 def __init__(self, protocol, psm, identifier):
     """Initialize a new MrpPlaying."""
     super().__init__(identifier)
     self.protocol = protocol
     self.psm = psm
     self.artwork_cache = Cache(limit=4)
Пример #2
0
 def setUp(self):
     self.cache = Cache(limit=2)
Пример #3
0
 def __init__(self, identifier, apple_tv):
     """Initialize metadata instance."""
     super().__init__(identifier)
     self.apple_tv = apple_tv
     self.artwork_cache = Cache(limit=4)
Пример #4
0
def cache():
    yield Cache(limit=2)