Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Apply Creational Design Pattern
  • Loading branch information
Mangaru committed Aug 14, 2021
commit 4db17b1dce37b27fba3a52ffa3d07a91fa48c1a6
8 changes: 8 additions & 0 deletions app/caches.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
class caches:
_instance = None
@staticmethod
def get_instance():
if caches.__instance == None:
caches
return __instance

"""app.caches.py"""
import functools
import logging
Expand Down