aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-redis/redis/internal/util/safe.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-redis/redis/internal/util/safe.go')
-rw-r--r--vendor/github.com/go-redis/redis/internal/util/safe.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/go-redis/redis/internal/util/safe.go b/vendor/github.com/go-redis/redis/internal/util/safe.go
new file mode 100644
index 0000000000..1b3060ebc2
--- /dev/null
+++ b/vendor/github.com/go-redis/redis/internal/util/safe.go
@@ -0,0 +1,11 @@
+// +build appengine
+
+package util
+
+func BytesToString(b []byte) string {
+ return string(b)
+}
+
+func StringToBytes(s string) []byte {
+ return []byte(s)
+}