lbfeng
V2EX  ›  Flask

如何为当前用户保存一个变量,并可以在不同的 blueprint 之中使用。

  •  
  •   lbfeng · Jan 19, 2016 · 2888 views
    This topic created in 3765 days ago, the information mentioned may be changed or developed.

    一个变量在新的线程启动时被创建。在不同 blueprint 的 view function 中可以被修改并保存。

    1 replies    2016-01-19 23:01:43 +08:00
    ethego
        1
    ethego  
       Jan 19, 2016   ❤️ 1
    session 、 redis 、 memcache
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 06:29 · PVG 14:29 · LAX 23:29 · JFK 02:29
    ♥ Do have faith in what you're doing.