save

Save data in lock file, if not exist create and then save

Arguments
Name Type Description Required
name string name of lock file yes
data string data for being save in lock file yes

Output : bool | int

Static or normal : Static

Examples :

lock::save('lock_name', 'data_to_be_saved');