From 4ddcc0ea67e76bec4637daee6a6cc7167e8dae04 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 27 Jan 2024 11:02:24 +0200 Subject: [PATCH] use magick method namespace --- src/controller/room.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index 2d1f0ad..e3e4ead 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -332,7 +332,7 @@ class Room // Check for cache $result = $this->_memory->get( [ - 'Room::_post', + __METHOD__, $namespace, $key, $field @@ -341,7 +341,7 @@ class Room $time = $this->_memory->get( [ - 'Room::_post', + __METHOD__, $namespace, $key, $field, @@ -540,7 +540,7 @@ class Room // Check for cached results $this->_memory->set( [ - 'Room::_post', + __METHOD__, $namespace, $key, $field @@ -550,7 +550,7 @@ class Room $this->_memory->set( [ - 'Room::_post', + __METHOD__, $namespace, $key, $field, @@ -822,7 +822,7 @@ class Room public function _namespace(string $namespace): ?string { // Check for cache - if ($result = $this->_memory->get(['Room::_namespace', $namespace])) + if ($result = $this->_memory->get([__METHOD__, $namespace])) { return $result; } @@ -834,10 +834,10 @@ class Room { $this->_memory->set( [ - 'Room::_namespace', + __METHOD__, $namespace ], - $time + $record['displayName'] ); return $record['displayName'];