{"id":205525,"date":"2025-06-12T10:58:11","date_gmt":"2025-06-12T02:58:11","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205525\/"},"modified":"2025-06-12T10:58:11","modified_gmt":"2025-06-12T02:58:11","slug":"golang-%e6%a1%86%e6%9e%b6%e4%b8%ad%e6%8f%90%e5%8d%87%e6%80%a7%e8%83%bd%e7%9a%84%e7%bc%93%e5%ad%98%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205525\/","title":{"rendered":"Golang \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565"},"content":{"rendered":"<p>\u4eca\u5929GOLANG\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565\u300b<\/span>\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u7684\u77e5\u8bc6\u70b9\u5305\u62ec<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u65e0\u8bba\u4f60\u662f\u5c0f\u767d\u8fd8\u662f\u8001\u624b\uff0c\u90fd\u9002\u5408\u770b\u4e00\u770b\u54e6~\u6709\u597d\u7684\u5efa\u8bae\u4e5f\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u82e5\u662f\u770b\u5b8c\u6709\u6240\u6536\u83b7\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u80fd\u591a\u591a\u70b9\u8d5e\u652f\u6301\u5440\uff01\u4e00\u8d77\u52a0\u6cb9\u5b66\u4e60~,\u7f13\u5b58\u63d0\u5347 GOLANG \u6846\u67b6\u6027\u80fd\u7b56\u7565\u5185\u5b58\u7f13\u5b58\uff1a\u4f7f\u7528 sync.Map \u6216 GoCache\uff0c\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\u4ee5\u5b9e\u73b0\u5feb\u901f\u8bbf\u95ee\u3002\u5206\u5e03\u5f0f\u7f13\u5b58\uff1a\u5229\u7528 Redis \u7b49\u7cfb\u7edf\uff0c\u5c06\u6570\u636e\u5206\u7247\u5b58\u50a8\u5728\u591a\u4e2a\u670d\u52a1\u5668\u4e0a\uff0c\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u3002\u591a\u7ea7\u7f13\u5b58\uff1a\u7ed3\u5408\u9ad8\u901f\u7f13\u5b58\uff08\u5185\u5b58\u7f13\u5b58\uff09\u548c\u4f4e\u901f\u7f13\u5b58\uff08\u5206\u5e03\u5f0f\u7f13\u5b58\uff09\uff0c\u4f18\u5148\u5728\u9ad8\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u6570\u636e\u3002,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241026\/1729919076671c78644e404.jpg\" class=\"aligncenter\">,<br \/>\n<strong>GOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565<\/strong>,\u7f13\u5b58\u662f\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u91cd\u8981\u6280\u672f\uff0c\u5728 GOLANG \u6846\u67b6\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u7f13\u5b58\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u7528\u7684\u7f13\u5b58\u7b56\u7565\uff0c\u5e76\u63d0\u4f9b\u5b9e\u6218\u6848\u4f8b\u3002,<br \/>\n<strong>1. \u5185\u5b58\u7f13\u5b58<\/strong>,\u5185\u5b58\u7f13\u5b58\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\uff0c\u8bbf\u95ee\u901f\u5ea6\u6700\u5feb\u3002\u53ef\u4ee5\u4f7f\u7528<br \/>\n<code>sync.Map<\/code> \u6216<br \/>\n<code>GoCache<\/code> \u7b49\u5e93\u5728 GOLANG \u4e2d\u5b9e\u73b0\u5185\u5b58\u7f13\u5b58\u3002,<br \/>\n<strong>2. \u5206\u5e03\u5f0f\u7f13\u5b58<\/strong>,\u5206\u5e03\u5f0f\u7f13\u5b58\u5c06\u6570\u636e\u5206\u7247\u5b58\u50a8\u5728\u591a\u4e2a\u670d\u52a1\u5668\u4e0a\uff0c\u901a\u8fc7\u4e00\u81f4\u6027\u54c8\u5e0c\u7b49\u7b97\u6cd5\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u4f7f\u7528<br \/>\n<code>Redis<\/code>\u3001<br \/>\n<code>Memcached<\/code> \u6216<br \/>\n<code>Hazelcast<\/code> \u7b49\u5206\u5e03\u5f0f\u7f13\u5b58\u7cfb\u7edf\u3002,<br \/>\n<strong>3. \u591a\u7ea7\u7f13\u5b58<\/strong>,\u591a\u7ea7\u7f13\u5b58\u5c06\u9ad8\u901f\u7f13\u5b58\uff08\u5982\u5185\u5b58\u7f13\u5b58\uff09\u4e0e\u4f4e\u901f\u7f13\u5b58\uff08\u5982\u5206\u5e03\u5f0f\u7f13\u5b58\uff09\u7ed3\u5408\u4f7f\u7528\u3002\u9996\u5148\u5728\u9ad8\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u6570\u636e\uff0c\u5982\u679c\u672a\u627e\u5230\uff0c\u5219\u518d\u5230\u4f4e\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u3002,<br \/>\n<strong>\u5b9e\u6218\u6848\u4f8b<\/strong>,\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u83b7\u53d6\u7528\u6237\u6570\u636e\u7684\u51fd\u6570<br \/>\n<code>getUser()<\/code>\uff0c\u5b83\u4ece\u6570\u636e\u5e93\u4e2d\u68c0\u7d22\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7f13\u5b58\u6765\u4f18\u5316\u6027\u80fd\uff1a,\u901a\u8fc7\u4f7f\u7528\u7f13\u5b58\uff0c\u6211\u4eec\u53ef\u4ee5\u663e\u8457\u51cf\u5c11\u6570\u636e\u5e93\u8bf7\u6c42\u6570\u91cf\uff0c\u4ece\u800c\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002,\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300aGOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8egolang,\u7f13\u5b58\u7b56\u7565\u7684\u77e5\u8bc6\u70b9\uff01,\u4eca\u5929GOLANG\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565\u300b<\/span>\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u7684\u77e5\u8bc6\u70b9\u5305\u62ec<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u65e0\u8bba\u4f60\u662f\u5c0f\u767d\u8fd8\u662f\u8001\u624b\uff0c\u90fd\u9002\u5408\u770b\u4e00\u770b\u54e6~\u6709\u597d\u7684\u5efa\u8bae\u4e5f\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u82e5\u662f\u770b\u5b8c\u6709\u6240\u6536\u83b7\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u80fd\u591a\u591a\u70b9\u8d5e\u652f\u6301\u5440\uff01\u4e00\u8d77\u52a0\u6cb9\u5b66\u4e60~,<br \/>\n<b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>GOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565<\/span><\/p>\n<h1>GOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565<\/h1>\n<p><span>2024-10-26 13:04:58<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u4eca\u5929GOLANG\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565\u300b<\/span>\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u7684\u77e5\u8bc6\u70b9\u5305\u62ec<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u65e0\u8bba\u4f60\u662f\u5c0f\u767d\u8fd8\u662f\u8001\u624b\uff0c\u90fd\u9002\u5408\u770b\u4e00\u770b\u54e6~\u6709\u597d\u7684\u5efa\u8bae\u4e5f\u6b22\u8fce\u5927\u5bb6\u5728\u8bc4\u8bba\u7559\u8a00\uff0c\u82e5\u662f\u770b\u5b8c\u6709\u6240\u6536\u83b7\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u80fd\u591a\u591a\u70b9\u8d5e\u652f\u6301\u5440\uff01\u4e00\u8d77\u52a0\u6cb9\u5b66\u4e60~<\/p>\n<p>\u7f13\u5b58\u63d0\u5347 GOLANG \u6846\u67b6\u6027\u80fd\u7b56\u7565\u5185\u5b58\u7f13\u5b58\uff1a\u4f7f\u7528 sync.Map \u6216 GoCache\uff0c\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\u4ee5\u5b9e\u73b0\u5feb\u901f\u8bbf\u95ee\u3002\u5206\u5e03\u5f0f\u7f13\u5b58\uff1a\u5229\u7528 Redis \u7b49\u7cfb\u7edf\uff0c\u5c06\u6570\u636e\u5206\u7247\u5b58\u50a8\u5728\u591a\u4e2a\u670d\u52a1\u5668\u4e0a\uff0c\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u3002\u591a\u7ea7\u7f13\u5b58\uff1a\u7ed3\u5408\u9ad8\u901f\u7f13\u5b58\uff08\u5185\u5b58\u7f13\u5b58\uff09\u548c\u4f4e\u901f\u7f13\u5b58\uff08\u5206\u5e03\u5f0f\u7f13\u5b58\uff09\uff0c\u4f18\u5148\u5728\u9ad8\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u6570\u636e\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241026\/1729919076671c78644e404.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>GOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565<\/strong><\/p>\n<p>\u7f13\u5b58\u662f\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u91cd\u8981\u6280\u672f\uff0c\u5728 GOLANG \u6846\u67b6\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u7f13\u5b58\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4e00\u4e9b\u5e38\u7528\u7684\u7f13\u5b58\u7b56\u7565\uff0c\u5e76\u63d0\u4f9b\u5b9e\u6218\u6848\u4f8b\u3002<\/p>\n<p><strong>1. \u5185\u5b58\u7f13\u5b58<\/strong><\/p>\n<p>\u5185\u5b58\u7f13\u5b58\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\uff0c\u8bbf\u95ee\u901f\u5ea6\u6700\u5feb\u3002\u53ef\u4ee5\u4f7f\u7528 <code>sync.Map<\/code> \u6216 <code>GoCache<\/code> \u7b49\u5e93\u5728 GOLANG \u4e2d\u5b9e\u73b0\u5185\u5b58\u7f13\u5b58\u3002<\/p>\n<pre>import (\n    \"sync\"\n\n    \"github.com\/patrickmn\/go-cache\"\n)\n\nvar (\n    mu sync.Mutex\n    cache = make(map[string]interface{})\n)\n\nfunc Get(key string) (interface{}, bool) {\n    mu.Lock()\n    defer mu.Unlock()\n    value, ok := cache[key]\n    return value, ok\n}\n\nfunc Set(key string, value interface{}) {\n    mu.Lock()\n    defer mu.Unlock()\n    cache[key] = value\n}<\/pre>\n<p><strong>2. \u5206\u5e03\u5f0f\u7f13\u5b58<\/strong><\/p>\n<p>\u5206\u5e03\u5f0f\u7f13\u5b58\u5c06\u6570\u636e\u5206\u7247\u5b58\u50a8\u5728\u591a\u4e2a\u670d\u52a1\u5668\u4e0a\uff0c\u901a\u8fc7\u4e00\u81f4\u6027\u54c8\u5e0c\u7b49\u7b97\u6cd5\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u3002\u53ef\u4ee5\u4f7f\u7528 <code>Redis<\/code>\u3001<code>Memcached<\/code> \u6216 <code>Hazelcast<\/code> \u7b49\u5206\u5e03\u5f0f\u7f13\u5b58\u7cfb\u7edf\u3002<\/p>\n<pre>import (\n    \"context\"\n    \"time\"\n\n    \"github.com\/go-redis\/redis\/v8\"\n)\n\nvar redisClient *redis.Client\n\nfunc init() {\n    redisClient = redis.NewClient(&amp;redis.Options{\n        Addr: \"localhost:6379\",\n    })\n\n    ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)\n    defer cancel()\n\n    if _, err := redisClient.Ping(ctx).Result(); err != nil {\n        panic(err)\n    }\n}\n\nfunc Get(key string) (string, error) {\n    return redisClient.Get(context.Background(), key).Result()\n}\n\nfunc Set(key string, value string) error {\n    return redisClient.Set(context.Background(), key, value, 0).Err()\n}<\/pre>\n<p><strong>3. \u591a\u7ea7\u7f13\u5b58<\/strong><\/p>\n<p>\u591a\u7ea7\u7f13\u5b58\u5c06\u9ad8\u901f\u7f13\u5b58\uff08\u5982\u5185\u5b58\u7f13\u5b58\uff09\u4e0e\u4f4e\u901f\u7f13\u5b58\uff08\u5982\u5206\u5e03\u5f0f\u7f13\u5b58\uff09\u7ed3\u5408\u4f7f\u7528\u3002\u9996\u5148\u5728\u9ad8\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u6570\u636e\uff0c\u5982\u679c\u672a\u627e\u5230\uff0c\u5219\u518d\u5230\u4f4e\u901f\u7f13\u5b58\u4e2d\u67e5\u627e\u3002<\/p>\n<pre>func Get(key string) (interface{}, error) {\n    value, err := fastCache.Get(key)\n    if err == nil {\n        return value, nil\n    }\n\n    value, err = slowCache.Get(key)\n    if err == nil {\n        fastCache.Set(key, value)\n    }\n\n    return value, err\n}<\/pre>\n<p><strong>\u5b9e\u6218\u6848\u4f8b<\/strong><\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u83b7\u53d6\u7528\u6237\u6570\u636e\u7684\u51fd\u6570 <code>getUser()<\/code>\uff0c\u5b83\u4ece\u6570\u636e\u5e93\u4e2d\u68c0\u7d22\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7f13\u5b58\u6765\u4f18\u5316\u6027\u80fd\uff1a<\/p>\n<pre>import (\n    \"context\"\n    \"time\"\n\n    \"github.com\/go-redis\/redis\/v8\"\n)\n\nvar (\n    redisClient *redis.Client\n    cacheDuration = 5 * time.Minute\n    slowGetUser = func(id int) (string, error) { ... }\n)\n\nfunc init() {\n    redisClient = redis.NewClient(&amp;redis.Options{\n        Addr: \"localhost:6379\",\n    })\n}\n\nfunc getUser(id int) (string, error) {\n    key := fmt.Sprintf(\"user:%d\", id)\n    value, err := redisClient.Get(context.Background(), key).Result()\n    if err != nil {\n        value, err = slowGetUser(id)\n        if err != nil {\n            return \"\", err\n        }\n\n        err = redisClient.Set(context.Background(), key, value, cacheDuration).Err()\n        if err != nil {\n            return \"\", err\n        }\n    }\n\n    return value, nil\n}<\/pre>\n<p>\u901a\u8fc7\u4f7f\u7528\u7f13\u5b58\uff0c\u6211\u4eec\u53ef\u4ee5\u663e\u8457\u51cf\u5c11\u6570\u636e\u5e93\u8bf7\u6c42\u6570\u91cf\uff0c\u4ece\u800c\u63d0\u5347\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300aGOLANG \u6846\u67b6\u4e2d\u63d0\u5347\u6027\u80fd\u7684\u7f13\u5b58\u7b56\u7565\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8egolang,\u7f13\u5b58\u7b56\u7565\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5355\u5143\u6d4b\u8bd5\u4e2d\u7684 PHP \u51fd\u6570\u4ee3\u7801\u8986\u76d6\u7387\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5982\u4f55\u5728 PHP \u51fd\u6570\u4e2d\u4f7f\u7528\u5f15\u7528\u5b9e\u73b0\u53cc\u5411\u5bf9\u8c61\u64cd\u4f5c\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929GOLANG\u7ed9\u5927\u5bb6\u5e26\u6765\u4e86 \u300a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205525","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205525"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205525\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}