mozillazg's Blog
  • Feed
  • About
  • Archives

[django]修复 MemcachedKeyCharacterError

2013-07-09

django Tags django / memcached
  • 错误详情
  • 解决
  • 参考

错误详情

MemcachedKeyCharacterError at /

Control characters not allowed

出现这个错误是因为 key 值不合法:长度大于 250、包含空格或控制符

解决

去掉非法字符或将 key 进行编码(base64/md5/sha1/...)

参考

  • php - Can memcached keys contain spaces? - Stack Overflow

微信扫一扫:分享

Scan me!

微信里点“发现”,扫一下

二维码便可将本文分享至朋友圈。

有任何建议和想法欢迎在下方评论区留言或者加我微信交流

Related Posts:

  • 《High Performance Django》阅读笔记(三)
  • 《High Performance Django》阅读笔记(二)
  • 《High Performance Django》阅读笔记(一)
  • [django]通过自定义 Model Field 的方式将上传的文本文件按 UTF-8 编码保存
  • [django]修复 "TypeError: delete() got an unexpected keyword argument 'using'"

Comments


© 2025 mozillazg · Powered by pelican-bootstrap3, Pelican, Bootstrap · Privacy

Creative Commons License "mozillazg's Blog" by mozillazg is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top