diff --git a/memcache_admin/src/Event/MemcacheStatsEvent.php b/memcache_admin/src/Event/MemcacheStatsEvent.php
index 4b8fc07..dba2f70 100644
--- a/memcache_admin/src/Event/MemcacheStatsEvent.php
+++ b/memcache_admin/src/Event/MemcacheStatsEvent.php
@@ -2,8 +2,8 @@
 
 namespace Drupal\memcache_admin\Event;
 
+use Symfony\Contracts\EventDispatcher\Event;
 use Drupal\memcache\DrupalMemcacheInterface;
-use Symfony\Component\EventDispatcher\Event;
 
 /**
  * Memcache Stats Event
diff --git a/memcache_admin/src/EventSubscriber/MemcacheAdminSubscriber.php b/memcache_admin/src/EventSubscriber/MemcacheAdminSubscriber.php
index 03ae739..8a515ea 100644
--- a/memcache_admin/src/EventSubscriber/MemcacheAdminSubscriber.php
+++ b/memcache_admin/src/EventSubscriber/MemcacheAdminSubscriber.php
@@ -2,11 +2,11 @@
 
 namespace Drupal\memcache_admin\EventSubscriber;
 
+use Symfony\Component\HttpKernel\Event\ResponseEvent;
 use Drupal\Core\Render\Element\HtmlTag;
 use Drupal\Core\Render\Markup;
 use Drupal\Core\StringTranslation\StringTranslationTrait;
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
 use Symfony\Component\HttpKernel\KernelEvents;
 use Drupal\Component\Render\HtmlEscapedText;
 use Drupal\Core\Render\HtmlResponse;
@@ -29,7 +29,7 @@ class MemcacheAdminSubscriber implements EventSubscriberInterface {
   /**
    * Display statistics on page.
    */
-  public function displayStatistics(FilterResponseEvent $event) {
+  public function displayStatistics(ResponseEvent $event) {
     $user = \Drupal::currentUser();
 
     if ($user->id() == 0) {
diff --git a/src/MemcacheBackend.php b/src/MemcacheBackend.php
index b80bf2e..bd3b46f 100644
--- a/src/MemcacheBackend.php
+++ b/src/MemcacheBackend.php
@@ -180,7 +180,7 @@ class MemcacheBackend implements CacheBackendInterface {
     $cache->valid = TRUE;
 
     // Items that have expired are invalid.
-    if ($cache->expire != CacheBackendInterface::CACHE_PERMANENT && $cache->expire <= REQUEST_TIME) {
+    if ($cache->expire != CacheBackendInterface::CACHE_PERMANENT && $cache->expire <= \Drupal::time()->getRequestTime()) {
       $cache->valid = FALSE;
     }
 
@@ -362,7 +362,7 @@ class MemcacheBackend implements CacheBackendInterface {
   public function invalidateMultiple(array $cids) {
     foreach ($cids as $cid) {
       if ($item = $this->get($cid)) {
-        $item->expire = REQUEST_TIME - 1;
+        $item->expire = \Drupal::time()->getRequestTime() - 1;
         $this->memcache->set($cid, $item);
       }
     }
diff --git a/tests/src/Unit/MemcacheSettingsTest.php b/tests/src/Unit/MemcacheSettingsTest.php
index 29421a1..44c3931 100644
--- a/tests/src/Unit/MemcacheSettingsTest.php
+++ b/tests/src/Unit/MemcacheSettingsTest.php
@@ -29,7 +29,7 @@ class MemcacheSettingsTest extends UnitTestCase {
   /**
    * @covers ::__construct
    */
-  protected function setUp() {
+  protected function setUp(): void {
     $this->config = [
       'memcache' => [
         'servers' => ['127.0.0.2:12345' => 'default'],
