Method: Netica::ActiveNetwork#save

Defined in:
lib/netica/active_network.rb

#savetrue, ...

Save ActiveNetwork to an associated redis store, if one is defined.



64
65
66
67
68
# File 'lib/netica/active_network.rb', line 64

def save
  if Netica::Environment.instance.redis
    return Netica::Environment.instance.redis.set(token, JSON.dump(state))
  end
end