+ $cacheKey = $this->cachePrefix . $key;
+ if ($this->cache->has($cacheKey)) {
+ return $this->cache->get($cacheKey);
+ }
+
+ $settingObject = $this->getSettingObjectByKey($key);
+
+ if ($settingObject !== null) {
+ $value = $settingObject->value;
+ $this->cache->forever($cacheKey, $value);
+ return $value;
+ }
+
+ return $default;
+ }
+
+ /**
+ * Clear an item from the cache completely.
+ * @param $key
+ */
+ protected function clearFromCache($key)
+ {
+ $cacheKey = $this->cachePrefix . $key;
+ $this->cache->forget($cacheKey);
+ }
+
+ /**
+ * Format a settings value
+ * @param $value
+ * @param $default
+ * @return mixed
+ */
+ protected function formatValue($value, $default)
+ {