| Bot :: BasicBot :: Pluggable :: Store. BOT :: BasicBot :: PlugGable :: Store´Â ¹é ¿£µå Ç÷¯±× °¡´É »óÁ¡ÀÇ ±âº» Ŭ·¡½ºÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Bot :: BasicBot :: Pluggable :: Store. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~tomi/URI-Find-Simple-1/lib/URI/Find/Simple.pm
Bot :: BasicBot :: Pluggable :: Store. ű×
Bot :: BasicBot :: Pluggable :: Store. ¼³¸í
Bot :: BasicBot :: Pluggable :: Store´Â ¹é ¿£µå Ç÷¯±× °¡´É »óÁ¡ÀÇ ±âº» Ŭ·¡½ºÀÔ´Ï´Ù. Bot :: BasicBot :: Pluggable :: Store´Â ¹é ¿£µå Ç÷¯±× °¡´É Store.Synopsis ³» $ Store = Bot :: BasicBot :: Pluggable :: Store-> New (Option => "°ª")¸¦À§ÇÑ ±âº» Ŭ·¡½ºÀÔ´Ï´Ù. ³» $ name = $ STORE-> À̸§; ³» $ namespace = "myModule"; for ($ store-> Å° ($ namespace)) {my $ value = $ store-> get ($ namespace, $ _); $ STORE-> SET ($ NAMESPACE, $ _ => "$ °¡Ä¡ ¹× MOMMA"); } 'REAL'STORE Ŭ·¡½º´Â SUBCLASSS¸¦ ÀúÀåÇÏ°í ÀúÀå¼Ò¸¦ ÀúÀåÇÏ´Â ¸î °¡Áö ¿µ±¸Àû ÀÎ ¹æ¹ýÀ» Á¦°øÇؾßÇÕ´Ï´Ù .METHODSKEYS (³×ÀÓ ½ºÆäÀ̽º) ¸ðµç ÀúÀå¼Ò Å°ÀÇ ¸ñ·Ï (³×ÀÓ ½ºÆäÀ̽º, var)ÀÇ ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. 'var'.set (³×ÀÓ ½ºÆäÀ̽º, Å° => val) 'Å°'¿¡ ÀúÀåµÈ °ªÀ» 'VAL'À¸·Î ¼³Á¤ÇÕ´Ï´Ù. Store object.unset (³×ÀÓ ½ºÆäÀ̽º, Å°)À» ¹ÝȯÇÕ´Ï´Ù. ÀúÀå¼Ò¿¡¼ Å° 'Å°'¸¦ Á¦°ÅÇÕ´Ï´Ù. Store object.namespaces () Store.load () save () ´ýÇÁ () ´ýÇÁ¸¦ °Å´ëÇÑ ½ºÄ®¶ó¿¡ ´ýÇÁÇÏ´Â ¸ðµç ³×ÀÓ ½ºÆäÀ̽º ¸ñ·ÏÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ°ÍÀº ´ëºÎºÐ ÇÑ »óÁ¡¿¡¼ ´Ù¸¥ »óÁ¡¿¡¼ ´Ù¸¥ »óÁ¡À¸·Î º¯È¯ ÇÒ ¼ö ÀÖ½À´Ï´Ù. IE : ³» $ from = bot :: basicbot :: pluggable :: store :: ÀúÀå °¡´É -> new (); ³» $ to = bot :: basicbot :: pluggable :: store :: dbi-> new (...); $ to-> º¹¿ø ($ from-> ´ýÇÁ); º¹¿ø (µ¥ÀÌÅÍ) ´ýÇÁ ()¿¡¼ ÀúÀå¼Ò¸¦ º¹¿øÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Bot :: BasicBot :: Pluggable :: Store. °ü·Ã ¼ÒÇÁÆ®¿þ¾î